From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kP0oAxTQ7WI+TAEAbAwnHQ (envelope-from ) for ; Sat, 06 Aug 2022 04:21:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WKBAAxTQ7WKMhAAA9RJhRA (envelope-from ) for ; Sat, 06 Aug 2022 04:21:08 +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 905C23E4F0 for ; Sat, 6 Aug 2022 04:21:07 +0200 (CEST) Received: from localhost ([::1]:42838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oK9R4-00064M-Kl for larch@yhetil.org; Fri, 05 Aug 2022 22:21:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oK9R0-00064C-6X for guix-patches@gnu.org; Fri, 05 Aug 2022 22:21:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42851) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oK9Qz-0004Zm-U8 for guix-patches@gnu.org; Fri, 05 Aug 2022 22:21:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oK9Qz-0005pQ-O1 for guix-patches@gnu.org; Fri, 05 Aug 2022 22:21:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56989] [PATCH v3] gnu: Add dbqn. References: <20220805022023.5044-1-yewscion@gmail.com> In-Reply-To: <20220805022023.5044-1-yewscion@gmail.com> Resent-From: Christopher Rodriguez Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 06 Aug 2022 02:21:01 +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: 56989@debbugs.gnu.org Cc: Christopher Rodriguez Received: via spool by 56989-submit@debbugs.gnu.org id=B56989.165975244122363 (code B ref 56989); Sat, 06 Aug 2022 02:21:01 +0000 Received: (at 56989) by debbugs.gnu.org; 6 Aug 2022 02:20:41 +0000 Received: from localhost ([127.0.0.1]:60833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oK9Qf-0005oc-Af for submit@debbugs.gnu.org; Fri, 05 Aug 2022 22:20:41 -0400 Received: from mail-qk1-f177.google.com ([209.85.222.177]:38491) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oK9Qd-0005oP-Iw for 56989@debbugs.gnu.org; Fri, 05 Aug 2022 22:20:40 -0400 Received: by mail-qk1-f177.google.com with SMTP id o3so1793949qkk.5 for <56989@debbugs.gnu.org>; Fri, 05 Aug 2022 19:20:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=iLgaY2BoJ7BCh7k0zCCCjPrARYEhcdxXMSrGyl4+JHs=; b=REW006rCCZ9Q+4r0v3on2oFxbTXRpWhOq0nAvKFpWRODXK5vv2S97xzwOWPmLqRNsB kXU9A+m9rWgC2f58MDD9f748iv359MqSXCtKV/0rMHUB8rWGocL3Xvhp4M440S1o+HMC gxm+vCkITYwk8s2pMqP4ABRy0OBACOt1IIBChdAT2/I9uPo5ebjOvDRv/5Q9yulkXc3M i/YFmLyvXMdJq1pS/p6w86+dBpxW1WT1sQhNiN5CB33AloVbHjPxf18ghqfKaZtmWes5 tK35q3LUhSL7uqhyE/1i5UaQTgvBBA4exH2L2Twen4TTR1c/tvCbqtNSAEbjii9mAbG8 v0BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=iLgaY2BoJ7BCh7k0zCCCjPrARYEhcdxXMSrGyl4+JHs=; b=KDFE3Qf6Rd+6vzCqrQfXc5VwpdjS8PHgXYGPL2F5JhpsbT5ONmkio359ATkV2EPISK MxeiBv5fu2O/Tzi3o541HhH593yyWT5fZzKWXy6jQWBjIG1O1CdmmznO3bftdb1Pqnpr Hadd0Otjz180cy84T5qokhIuktorvfZdzcG6KIsHuTp4hiAKJZXc2AFTjsG8XUNzquUy qYC4t/HBjRqqOgE8l0QHAJ+QYG+yhi+tIrtv0+wnlUtXVDH+AbEwQmnJLufBSfCqeHPF CV4RzqFC6fCHy8GWkxQDJG3LpWEVMbTqrUaDPYkOiJ3MZ435wkVfZrZjN35/1c3ji3N0 AF2w== X-Gm-Message-State: ACgBeo1VV8r6NfN2BpdpDQaBV/uIUrfYVSs0X5qobfFwekkq+YODnx7F oKtvai8LUeAby7gNURrQB+YUu6YmVx8K9Q== X-Google-Smtp-Source: AA6agR7jhC7sqBWf3zNz+BAjlToAf+VrfJky726ZuXFmN9vwJi6MdqyC6F6DziGShA5iWX9HfD9e7A== X-Received: by 2002:a05:620a:b8c:b0:6b9:2c0e:8d9c with SMTP id k12-20020a05620a0b8c00b006b92c0e8d9cmr597957qkh.582.1659752433783; Fri, 05 Aug 2022 19:20:33 -0700 (PDT) Received: from gmail.com ([2601:547:a00:7720::7bb0]) by smtp.gmail.com with ESMTPSA id b16-20020a05622a021000b0031eddc83560sm3682946qtx.90.2022.08.05.19.20.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 19:20:33 -0700 (PDT) From: Christopher Rodriguez Date: Fri, 5 Aug 2022 22:20:22 -0400 Message-Id: <20220806022022.24054-1-yewscion@gmail.com> X-Mailer: git-send-email 2.37.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=1659752467; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=iLgaY2BoJ7BCh7k0zCCCjPrARYEhcdxXMSrGyl4+JHs=; b=KTJGkEoT6Eu/hO2TZmMunIRn4BX948piCy6QrU200Te3xGcciGfECmFdua0Y5vbFYkTqtr BWzgg3qdtHLZai+frP3s2hpzaQbo7BAB62H+VZ1dRDTjLs5dvdviO0IMFZBfmoO8Wtzzn8 j1RkEmqBbFsA2U31aX2wF9t5M1Gb9pOfOzzTIlhrLVW07nId09YMF9xpNeefrDVhwyjAn4 po3EA9Tnl6bZY5o/5ZYShOy66ElU+52Z7M4fEQL6bN4j0A0HIQWp0cp4FodLxI6x2QPNkk WJk30AW/MAcbHmWZ3NOH1ZBh4DO3VUVh3jfLrZMaKQ7j8+R1ccBUwXFTF8MQxw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659752467; a=rsa-sha256; cv=none; b=gOHe78GimRol4tCyXLZqYphTTtW0RogU3+GgdttN1BNgnW9nGhLWzS4PhcvUDxn62zmzO5 /BbdIZ1ajsvDMAUMyrufIfqdSXRYpf0ij7NwLPT7H0Nt8zGXmECJ9Ra4bj2tbB2pF6xHvf b9bML0MwwVZjWBE0TkRbXoRlLp9KkL9RT6yibHpT21gKaWfpvV1nlArPxfvjG8i96Bks/d vzqR0ErTHsu6X4XLkVmSOfj6pA0N0HqqA5ebgML07AuG0hycxTV6zjGZjM21u2aSsct/YU 3uH0GFKAuo9ijR64NzzYNgT/MxkDGUbg+AJig6Mw4OXcvyK4lpx9w3CLwRz5nA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=REW006rC; 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: 7.61 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=REW006rC; 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: 905C23E4F0 X-Spam-Score: 7.61 X-Migadu-Scanner: scn1.migadu.com X-TUID: EZHV8mip8Z1V * gnu/packages/bqn.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Registered it here. --- 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) + (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) + (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"))))))))) + (native-inputs (list `(,icedtea-8 "jdk") coreutils zip)) + (synopsis "BQN implementation based on dzaima/APL") + (description "BQN implementation based on dzaima/APL.") + (home-page "https://github.com/dzaima/BQN") + (license license:expat)))) base-commit: 116c0268ffd387c88b6b47135203fb330eb422f0 -- 2.37.1