From patchwork Thu Dec 9 13:23:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Raghav Gururajan X-Patchwork-Id: 35081 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5289327BBEA; Thu, 9 Dec 2021 13:25:27 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id DA58327BBE9 for ; Thu, 9 Dec 2021 13:25:26 +0000 (GMT) Received: from localhost ([::1]:35398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvJQL-0007y5-UD for patchwork@mira.cbaines.net; Thu, 09 Dec 2021 08:25:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33996) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvJPy-0007uw-HI for guix-patches@gnu.org; Thu, 09 Dec 2021 08:25:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:59547) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mvJPy-0007I5-9A for guix-patches@gnu.org; Thu, 09 Dec 2021 08:25:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mvJPy-0002jd-5R for guix-patches@gnu.org; Thu, 09 Dec 2021 08:25:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51885] [PATCH v4 1/3] gnu: Add asmjit. References: In-Reply-To: Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 09 Dec 2021 13:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51885 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 51885@debbugs.gnu.org Cc: Raghav Gururajan , Julien Lepiller , Disseminate Dissent , jgart , anothersms@gmail.com Received: via spool by 51885-submit@debbugs.gnu.org id=B51885.163905624210403 (code B ref 51885); Thu, 09 Dec 2021 13:25:02 +0000 Received: (at 51885) by debbugs.gnu.org; 9 Dec 2021 13:24:02 +0000 Received: from localhost ([127.0.0.1]:42846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJOv-0002hF-CV for submit@debbugs.gnu.org; Thu, 09 Dec 2021 08:24:02 -0500 Received: from out1.migadu.com ([91.121.223.63]:64191) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJOt-0002h6-3R for 51885@debbugs.gnu.org; Thu, 09 Dec 2021 08:23:56 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639056233; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Ynb+qdia3igzNy7+TqCMWC+lX6waAerPmB4FGiOFL6I=; b=OdCMp2jBpB5heuIc8gwjOZEmFfiqps4kMVeW21+Sj34RHpl2A8eMbWIVzciGJT91pYFAA8 1FJjhXjKHQi0iiJwMeaqbDc97fWB4y83+Orqo8ypiuhFREFCYRVMM7O+wkRfwgG7YLpFtl 8av4oqaJ7S6j5BZD1VVehnaZQGN3WH1OlMD8eDKmwgYimd/p5Vzkn+R2JduY+y6GyNYeTY 1i5dJT3E+y/+AnVP5F1wme0RlNREZ3p3kmOdlNtOcLi27b3Qkol+KeHui7sr+PoI0UacYW 9Ylri0gqGJb6vGg6g3sGjQbDHM6MSB47MXw7KcK2SYBUM0os28uMkLQ1Si89rA== Date: Thu, 9 Dec 2021 08:23:43 -0500 Message-Id: <20211209132345.2018-1-rg@raghavgururajan.name> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Raghav Gururajan X-ACL-Warn: , Raghav Gururajan via Guix-patches X-Patchwork-Original-From: Raghav Gururajan via Guix-patches via From: Raghav Gururajan X-getmail-retrieved-from-mailbox: Patches * gnu/packages/cpp.scm (asmjit): New variable. Co-authored-by: jgart Co-authored-by: Julien Lepiller Co-authored-by: Disseminate Dissent --- gnu/packages/cpp.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 9ab6e0b835..bbcdcd6be9 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -18,6 +18,9 @@ ;;; Copyright © 2020 Brett Gilio ;;; Copyright © 2020 Milkey Mouse ;;; Copyright © 2021 Raghav Gururajan +;;; Copyright © 2021 jgart +;;; Copyright © 2021 Julien Lepiller +;;; Copyright © 2021 Disseminate Dissent ;;; ;;; This file is part of GNU Guix. ;;; @@ -74,6 +77,38 @@ (define-module (gnu packages cpp) #:use-module (gnu packages web) #:use-module (gnu packages xml)) +(define-public asmjit + (let ((commit "4ec760a3d1f69e32ba460ecd2513f29b8428700b") + (revision "0")) + (package + (name "asmjit") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/asmjit/asmjit") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0skgccbpamcbg1byawfq5n6jzxgj64hnc7jznvk35nkskaaz1nlb")))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags + (list + "-DASMJIT_TEST=TRUE"))) + (home-page "https://asmjit.com/") + (synopsis "Machine code generation for C++") + (description "AsmJit is a lightweight library for machine code generation +written in C++ language. It can generate machine code for X86 and X86_64 +architectures with the support for the whole instruction set from legacy MMX to +the newest AVX-512 and AMX. It has a type-safe API that allows C++ compiler to +do semantic checks at compile-time even before the assembled code is generated +or executed. It also provides an optional register allocator that makes it easy +to generate complex code without a significant development effort.") + (license license:zlib)))) + (define-public range-v3 (package (name "range-v3") From patchwork Thu Dec 9 13:23:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raghav Gururajan X-Patchwork-Id: 35083 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B2E5827BBEA; Thu, 9 Dec 2021 13:26:21 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6EE6E27BBE9 for ; Thu, 9 Dec 2021 13:26:21 +0000 (GMT) Received: from localhost ([::1]:36042 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvJRE-0008Pn-KH for patchwork@mira.cbaines.net; Thu, 09 Dec 2021 08:26:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvJPy-0007v2-Sy for guix-patches@gnu.org; Thu, 09 Dec 2021 08:25:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:59548) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mvJPy-0007IE-Lc for guix-patches@gnu.org; Thu, 09 Dec 2021 08:25:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mvJPy-0002jl-I7 for guix-patches@gnu.org; Thu, 09 Dec 2021 08:25:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51885] [PATCH v4 2/3] gnu: Add argagg. Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 09 Dec 2021 13:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51885 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 51885@debbugs.gnu.org Cc: Raghav Gururajan , Julien Lepiller , Disseminate Dissent , jgart , anothersms@gmail.com Received: via spool by 51885-submit@debbugs.gnu.org id=B51885.163905625310435 (code B ref 51885); Thu, 09 Dec 2021 13:25:02 +0000 Received: (at 51885) by debbugs.gnu.org; 9 Dec 2021 13:24:13 +0000 Received: from localhost ([127.0.0.1]:42856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJPA-0002iF-LZ for submit@debbugs.gnu.org; Thu, 09 Dec 2021 08:24:12 -0500 Received: from out1.migadu.com ([91.121.223.63]:64291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJP9-0002i8-9n for 51885@debbugs.gnu.org; Thu, 09 Dec 2021 08:24:11 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639056250; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Mv1gi+YwvJOWhWSadLveMpcUufle5jZp7MpCCTcMeYY=; b=BLQ9yJ7yfNYFcw6Xhsk6rY6USse//MvbvSRI1Pi99UL8Fw/iknkDTXYHVtryvLUDTfjLeD N0TOxH15nS3JInAJK7jA5jsMj/z9HIigTo+oTjgCMd/nwr/J40nMISu4cGlavKA5PWG2ka qvzEfAuxur5pizstObqvdt3zvAyVdfOur0pbMCkXoScWgVeQRGp8vI1uagpc8WVQzacYS+ siXF9kkKXNP4zBHvFH8JVup90ScDfJdODZQJ2yaJ/s7cGtHyiyY2CFIrz29JPlLBckWg7Y ATlJuVXCEb+jzSSguLeknexqb4jx5qfSH2lcP5cKLtGguMQY9n/PJexJRmzkaA== Date: Thu, 9 Dec 2021 08:23:44 -0500 Message-Id: <20211209132345.2018-2-rg@raghavgururajan.name> In-Reply-To: <20211209132345.2018-1-rg@raghavgururajan.name> References: <20211209132345.2018-1-rg@raghavgururajan.name> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Raghav Gururajan X-ACL-Warn: , Raghav Gururajan via Guix-patches X-Patchwork-Original-From: Raghav Gururajan via Guix-patches via From: Raghav Gururajan X-getmail-retrieved-from-mailbox: Patches * gnu/packages/cpp.scm (argagg): New variable. Co-authored-by: jgart Co-authored-by: Julien Lepiller Co-authored-by: Disseminate Dissent --- gnu/packages/cpp.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index bbcdcd6be9..0ce2b681c8 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -77,6 +77,46 @@ (define-module (gnu packages cpp) #:use-module (gnu packages web) #:use-module (gnu packages xml)) +(define-public argagg + (let ((commit "79e4adfa2c6e2bfbe63da05cc668eb9ad5596748") + (revision "0")) + (package + (name "argagg") + (version (git-version "0.4.6" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vietjtnguyen/argagg") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1flkgh524lq3024p7ld5lg743s1v7qnbmgv77578rzmn2rjzr77n")))) + (build-system cmake-build-system) + (outputs '("out" "doc")) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'move-doc + (lambda* (#:key outputs #:allow-other-keys) + (let* ((name ,(package-name argagg)) + (out (assoc-ref outputs "out")) + (doc (assoc-ref outputs "doc"))) + (mkdir-p (string-append doc "/share/doc")) + (rename-file + (string-append out "/share/doc/" name) + (string-append doc "/share/doc/" name)))))))) + (native-inputs + `(("doxygen" ,doxygen))) + (home-page "https://github.com/vietjtnguyen/argagg") + (synopsis "C++11 command line argument parser") + (description "ArgAgg is yet another C++ command line argument/option parser. +It was written as a simple and idiomatic alternative to other frameworks like +getopt, Boost program options, TCLAP, and others. The goal is to achieve the +majority of argument parsing needs in a simple manner with an easy to use API.") + (license license:expat)))) + (define-public asmjit (let ((commit "4ec760a3d1f69e32ba460ecd2513f29b8428700b") (revision "0")) From patchwork Thu Dec 9 13:23:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Raghav Gururajan X-Patchwork-Id: 35082 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 331A627BBEA; Thu, 9 Dec 2021 13:25:28 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9DFFA27BBE9 for ; Thu, 9 Dec 2021 13:25:27 +0000 (GMT) Received: from localhost ([::1]:35396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvJQL-0007y0-Vr for patchwork@mira.cbaines.net; Thu, 09 Dec 2021 08:25:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvJPz-0007v6-AR for guix-patches@gnu.org; Thu, 09 Dec 2021 08:25:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:59549) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mvJPz-0007IO-2o for guix-patches@gnu.org; Thu, 09 Dec 2021 08:25:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mvJPy-0002js-W8 for guix-patches@gnu.org; Thu, 09 Dec 2021 08:25:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51885] [PATCH v4 3/3] gnu: Add blacksmith. Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 09 Dec 2021 13:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51885 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 51885@debbugs.gnu.org Cc: Raghav Gururajan , anothersms@gmail.com Received: via spool by 51885-submit@debbugs.gnu.org id=B51885.163905627310469 (code B ref 51885); Thu, 09 Dec 2021 13:25:02 +0000 Received: (at 51885) by debbugs.gnu.org; 9 Dec 2021 13:24:33 +0000 Received: from localhost ([127.0.0.1]:42860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJPV-0002im-13 for submit@debbugs.gnu.org; Thu, 09 Dec 2021 08:24:33 -0500 Received: from out1.migadu.com ([91.121.223.63]:64442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvJPS-0002ie-Qp for 51885@debbugs.gnu.org; Thu, 09 Dec 2021 08:24:31 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1639056269; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pJrLULbpZXiM/tb51f+1NX83H0R5vC18dJ/8SfbC/uA=; b=UdPcVvNB8zt4WoKGV9nVWTawEF4uLLioNL3MOcQ3sTGUxAH7Dshi+k1oRyFrmjFJFkDl7p x9G9w9/kCuBQwcQEvE8KMuridb8KaJZfIB0P+dj7duzVxuuU5vmGWEc90heT8xoJYG1W+w EtAKS4xrRgCCm0GSXCrreC3XiSvQ6fU+019/t8Aprxvlyww6iNTa2inTuYdg7jgeX3ktRj 9P/yyfDTVKWJotEmaUUAkUP/K1+wLK8BYnesbhzO5rlyocuxN5DV0f0CDJVN8d9AUFOif6 qT6XwosW+CzEBgZ3YIK/P/9spt9S/etn4oSMZ+R1yFo5NF5WJdUMmKs78teZTg== Date: Thu, 9 Dec 2021 08:23:45 -0500 Message-Id: <20211209132345.2018-3-rg@raghavgururajan.name> In-Reply-To: <20211209132345.2018-1-rg@raghavgururajan.name> References: <20211209132345.2018-1-rg@raghavgururajan.name> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Raghav Gururajan X-ACL-Warn: , Raghav Gururajan via Guix-patches X-Patchwork-Original-From: Raghav Gururajan via Guix-patches via From: Raghav Gururajan X-getmail-retrieved-from-mailbox: Patches * gnu/packages/cybersecurity.scm (blacksmith): New variable. --- gnu/packages/cybersecurity.scm | 78 ++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/gnu/packages/cybersecurity.scm b/gnu/packages/cybersecurity.scm index e4614e908e..8c9bb986be 100644 --- a/gnu/packages/cybersecurity.scm +++ b/gnu/packages/cybersecurity.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2020 Jakub Kądziołka ;;; Copyright © 2020, 2021 Tobias Geerinckx-Rice ;;; Copyright © 2021 c4droid +;;; Copyright © 2021 Raghav Gururajan ;;; ;;; This file is part of GNU Guix. ;;; @@ -20,10 +21,14 @@ (define-module (gnu packages cybersecurity) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build-system cmake) #:use-module (guix build-system python) + #:use-module (gnu packages cpp) #:use-module (gnu packages engineering) + #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) #:use-module (gnu packages python-crypto) @@ -32,6 +37,79 @@ (define-module (gnu packages cybersecurity) #:use-module (gnu packages bioinformatics) ;python-intervaltree #:use-module (gnu packages emulators)) +(define-public blacksmith + (let ((commit "c8e65b709a83665f9528efdedcf064abdb04859f") + (revision "0")) + (package + (name "blacksmith") + (version + (git-version "0.0.1" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/comsec-group/blacksmith") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0kyp71wndf527dgza5iks5m5vj543mvxp5w7cjd8x0pilmd1xrls")) + (modules '((guix build utils))) + (snippet + `(begin + (delete-file-recursively "external") + (substitute* "CMakeLists.txt" + (("add_subdirectory\\(external\\)") "") + (("[ \t]*FetchContent_MakeAvailable\\(asmjit\\)") + (string-append "find_package(asmjit)\n" + "find_package(nlohmann_json)"))) + #t)))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ;no test-suite + #:imported-modules + ((guix build copy-build-system) + ,@%cmake-build-system-modules) + #:modules + (((guix build copy-build-system) + #:prefix copy:) + (guix build cmake-build-system) + (guix build utils)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-build + (lambda _ + (substitute* "CMakeLists.txt" + ;; Use default C++ standard instead. + (("cxx_std_17") "") + ;; This project tries to link argagg library, + ;; which doesn't exist, as argagg project + ;; is a single header file. + (("argagg") "")))) + (replace 'install + (lambda args + (apply (assoc-ref copy:%standard-phases 'install) + #:install-plan + '(("." "bin" + #:include ("blacksmith")) + ("." "lib" + #:include-regexp ("\\.a$"))) + args)))))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("argagg" ,argagg) + ("asmjit" ,asmjit) + ("json" ,json))) + (home-page "https://comsec.ethz.ch/research/dram/blacksmith") + (synopsis "Rowhammer fuzzer with non-uniform and frequency-based patterns") + (description "Blacksmith is an implementation of Rowhammer fuzzer that +crafts novel non-uniform Rowhammer access patterns based on the concepts of +frequency, phase, and amplitude. It is able to bypass recent +@acronym{TRR, Target Row Refresh}in-DRAM mitigations effectively and as such can +trigger bit flips.") + (license license:expat)))) + (define-public ropgadget (package (name "ropgadget")