From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MCETFFro72IyQgEAbAwnHQ (envelope-from ) for ; Sun, 07 Aug 2022 18:29:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MLAQFFro72IZeAAAauVa8A (envelope-from ) for ; Sun, 07 Aug 2022 18:29:14 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E192A98A5 for ; Sun, 7 Aug 2022 18:29:13 +0200 (CEST) Received: from localhost ([::1]:54776 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKj9M-0003Ro-Eg for larch@yhetil.org; Sun, 07 Aug 2022 12:29:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKj9C-0003QI-IV for guix-patches@gnu.org; Sun, 07 Aug 2022 12:29:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48465) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oKj9C-0001ey-9q for guix-patches@gnu.org; Sun, 07 Aug 2022 12:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oKj9C-0000cB-5h for guix-patches@gnu.org; Sun, 07 Aug 2022 12:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56989] [PATCH v3] gnu: Add dbqn. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 07 Aug 2022 16:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56989 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Christopher Rodriguez , 56989@debbugs.gnu.org Received: via spool by 56989-submit@debbugs.gnu.org id=B56989.16598897032303 (code B ref 56989); Sun, 07 Aug 2022 16:29:02 +0000 Received: (at 56989) by debbugs.gnu.org; 7 Aug 2022 16:28:23 +0000 Received: from localhost ([127.0.0.1]:38213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKj8Z-0000b5-6Z for submit@debbugs.gnu.org; Sun, 07 Aug 2022 12:28:23 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:43960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKj8W-0000ar-Uu for 56989@debbugs.gnu.org; Sun, 07 Aug 2022 12:28:21 -0400 Received: by mail-ed1-f65.google.com with SMTP id o22so8764693edc.10 for <56989@debbugs.gnu.org>; Sun, 07 Aug 2022 09:28:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=JF9r7VNMwrzIB8aGvqoiH8NgLIrbw/l173UhFlt+rb0=; b=Eqn8NMJUgvQIQ5SxlyKuCBh+ZN1q0GaO60hCw/OI0Xvk7Y8HBMJ0I8jbRalM4j5Opv jDEKaYW4fU1HMdFMKr+SHCh6cV8HihA6sQkPJRiQrbG0zr50M+owNvVP+fq5lEZcSng8 jMRlSkOOe5CBm1TFAZ1YOxRgp+yQgDnts1sYK0deGxzfDw0IqS++nMywWSrnXfTsPnBS pdhZS/V6wd2bC68qMDR1eGa+X6I8r/6Unlx0RATVR5m0VjbJH2jAm+C1zQCRSAjvBMt3 tlmBADtC8Z9Ih2fHvf2Uyp8FCubfNSfvA2xJgYiC0zbSjZdSKTMhyxk49QhHEc8/mObw l7xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=JF9r7VNMwrzIB8aGvqoiH8NgLIrbw/l173UhFlt+rb0=; b=7LcGQ3ZKf+dwje+GqxLBz15B0eKQME7bk/Wv8vnfIi3WBqO0WvgSRZHHEVsE/d8pJv 92huj+DgxDsgYDve/H1NOdFkOZclCP75+wDC41mA+yUS3JZ8V8b1qEMhATG4o5jGC7NK pHxSJFacmzLdAKFBayxi00VPjuV/3UKVsmK+VSDWDuAVl7ipspTXt57F4vzMuKSIlZvq lN2b9BDgrXNSZ0NOkdx7+vAvSyiqe3YB8W+sx/BqcuODfRHBs4x3CBmkg2KYnY+RQMFk HdFqeskznSsQdNeRLLjs/IcOrzqOJ6MLfkGX60KkymzbMGrDcD2JvqcO3XA+iYZzDNOQ CZag== X-Gm-Message-State: ACgBeo3+HzzjMjuQRJWL5Eyb4j0EaGV93A7a5UegLyZ8jE527cvml4xf tfBkqsRcDxZU0ozIZWBuWmAyScMLoqo= X-Google-Smtp-Source: AA6agR45jUS7a323VxHRryRv3pt/cvdZKvvc/rb9+nxOrRMLpujAvaK+BDqmwPqaPChXZc0rX9cPCg== X-Received: by 2002:a05:6402:270c:b0:43d:efd3:883e with SMTP id y12-20020a056402270c00b0043defd3883emr15347703edd.221.1659889695284; Sun, 07 Aug 2022 09:28:15 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id jw16-20020a170906e95000b00726298147b1sm3893483ejb.161.2022.08.07.09.28.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Aug 2022 09:28:15 -0700 (PDT) Message-ID: <24ad558d70673af82e334a759e887f0b49a757c8.camel@gmail.com> From: Liliana Marie Prikler Date: Sun, 07 Aug 2022 18:28:14 +0200 In-Reply-To: <20220806022022.24054-1-yewscion@gmail.com> References: <20220806022022.24054-1-yewscion@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659889754; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=JF9r7VNMwrzIB8aGvqoiH8NgLIrbw/l173UhFlt+rb0=; b=DfS10mAL8ufqZ9Vp76DPGJYcpE1Az7PMkWmn2aTBhFrQwS+IKJskU7Zf6KKfj3komgjcoG IZSNRgjRJDDspUxfPCMc+HNYNFQ3mwoIwb0jUqYaFkdx2irr6Tuc+0TE+mco136C6YcuTl 1VL/b3M8+N5gfsV0fZG81+x8uQVxcvrPtZG5t/foSvwTaTaZ5FQDfqJwuY/lWrFuuQikeT 9V4xECFWN6trWmbCAeRhEr497hbwiTrLoReiYUUMjUNU71Kj5iFl6r+oI/d74av7uBM4l/ W4ZUhdRi/bNlr9nTIly2PpjrNQPt5U74cTBTjnoDLT2NTDkQB62pKgPdlAhXcQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659889754; a=rsa-sha256; cv=none; b=QuNg+eDWztx8TgCZ5bbmNpfX30cVOR7/vXpYSPSj7oPiC9R6oOS7rhgHLej+KphsZ4u13h gF/zxKwQ2q0/O+SOdolwjeFA2+WASIvLHFK7CnYblwiS9X52jHZ88iaVzia3WZPPI/DcJx SQ3SR0//yhlU9IrxYYrciBMOSXoTPSeZrA+UGl0e/XaG/CA84/8wn9x/Pxav1M9EvkO5Hh TQauIIAhjNw4MNdzVDBNAiqHjQBdCViURUBBgDZfhBaeG4VUPzrs6L8uDP72q2Tyftg6AH 7QBBuyg2h+prIAmPj1dth/vJrEvTXgZxSePw+jEmoEYxxNzGsbY0sQV7H2wQlw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Eqn8NMJU; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Eqn8NMJU; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E192A98A5 X-Spam-Score: 5.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: gB84HEO8yRrm Am Freitag, dem 05.08.2022 um 22:20 -0400 schrieb Christopher Rodriguez: > * gnu/packages/bqn.scm: New file. > * gnu/local.mk (GNU_SYSTEM_MODULES): Registered it here. Don't know if that's just my preference or everyone's, but I like present tense. > --- >  gnu/local.mk         |  1 + >  gnu/packages/bqn.scm | 89 > ++++++++++++++++++++++++++++++++++++++++++++ >  2 files changed, 90 insertions(+) >  create mode 100644 gnu/packages/bqn.scm > > diff --git a/gnu/local.mk b/gnu/local.mk > index 0e8b7b0447..c3f4cc782c 100644 > --- a/gnu/local.mk > +++ b/gnu/local.mk > @@ -138,6 +138,7 @@ GNU_SYSTEM_MODULES > =                                \ >    %D%/packages/boost.scm                       \ >    %D%/packages/bootloaders.scm                 \ >    %D%/packages/bootstrap.scm                   \ > +  %D%/packages/bqn.scm                         \ >    %D%/packages/browser-extensions.scm          \ >    %D%/packages/build-tools.scm                 \ >    %D%/packages/busybox.scm                     \ > diff --git a/gnu/packages/bqn.scm b/gnu/packages/bqn.scm > new file mode 100644 > index 0000000000..456983f71f > --- /dev/null > +++ b/gnu/packages/bqn.scm > @@ -0,0 +1,89 @@ > +(define-module (gnu packages bqn) > +  #:use-module ((guix licenses) #:prefix license:) > +  #:use-module (guix gexp) > +  #:use-module (guix packages) > +  #:use-module (guix download) > +  #:use-module (guix git-download) > +  #:use-module (guix build-system copy) > +  #:use-module (guix build-system gnu) > +  #:use-module (guix utils) > +  #:use-module (guix deprecation) > +  #:use-module (gnu packages) > +  #:use-module (gnu packages libffi) > +  #:use-module (gnu packages base) > +  #:use-module (gnu packages pkg-config) > +  #:use-module (gnu packages llvm) > +  #:use-module (gnu packages java) > +  #:use-module (gnu packages compression)) > +(define-public dbqn > +  (let ((commit "0bbe096fc07d278b679a8479318f1722d096a03e") > +        (revision "1")) > +    (package > +      (name "dbqn") > +      (version (git-version "0.2.1" revision commit)) > +      (source (origin > +                (method git-fetch) > +                (uri (git-reference > +                      (url "https://github.com/dzaima/BQN") > +                      (commit commit))) > +                (file-name (git-file-name name version)) > +                (sha256 > +                 (base32 > +                  > "1kxzxz2hrd1871281s4rsi569qk314aqfmng9pkqn8gv9nqhmph0")))) > +      (outputs '("out")) > +      (build-system gnu-build-system) > +      (arguments > +       (list #:imported-modules `(,@%gnu-build-system-modules (guix > build > +                                                                    > syscalls) Put #:imported modules on a new line, same for (guix build syscalls). > +                                  (guix build ant-build-system)) > +             #:modules `((guix build gnu-build-system) > +                         ((guix build ant-build-system) > +                          #:prefix ant:) > +                         (guix build utils)) > +             #:phases #~(modify-phases %standard-phases > +                          (delete 'configure) > +                          (replace 'build > +                            (lambda* _ > +                              (invoke "./build"))) > +                          (replace 'check > +                            (lambda* (:#key tests? > +                                            #:allow-other-tags) > +                              (when tests? > +                                (chmod "./BQN" 493) Use octal notation for chmod. > +                                (system "./BQN ./test/test")))) > +                          (add-after 'install 'reorder-jar-content > +                            (lambda* (#:key outputs #:allow-other- > keys) > +                              (apply (assoc-ref ant:%standard-phases > +                                                'reorder-jar- > content) > +                                     #:outputs (list outputs)))) > +                          (add-after 'reorder-jar-content 'jar- > indices > +                            (lambda* (#:key outputs #:allow-other- > keys) > +                              (apply (assoc-ref ant:%standard-phases > +                                                'generate-jar- > indices) > +                                     #:outputs (list outputs)))) > +                          (add-after 'jar-indices 'fix-jar- > timestamps > +                            (lambda* (#:key outputs #:allow-other- > keys) > +                              (apply (assoc-ref ant:%standard-phases > +                                                'reorder-jar- > content) > +                                     #:outputs (list outputs)))) > +                          (replace 'install > +                            (lambda* (#:key outputs #:allow-other- > keys) > +                              (let* ((out (assoc-ref outputs "out")) > +                                     (dest-bin (string-append out > "/bin")) > +                                     (dest-jar (string-append out > +                                                              > "/share/java"))) > +                                (mkdir-p dest-bin) > +                                (mkdir-p dest-jar) > +                                (copy-recursively "BQN" > +                                                  (string-append > dest-bin > +                                                                 > "/dbqn")) > +                                (chmod (string-append dest-bin > "/dbqn") 493) > +                                (install-file "BQN.jar" dest-jar) > +                                (substitute* (string-append dest-bin > "/dbqn") > +                                  (("BQN.jar") > +                                   (string-append dest-jar > "/BQN.jar"))))))))) Other than that LGTM modulo not having tested anything as of yet. Cheers