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 0CvUL/Dq82InlgAAbAwnHQ (envelope-from ) for ; Wed, 10 Aug 2022 19:29:20 +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 AGvdL/Dq82JXOwEA9RJhRA (envelope-from ) for ; Wed, 10 Aug 2022 19:29:20 +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 614313DB4C for ; Wed, 10 Aug 2022 19:29:20 +0200 (CEST) Received: from localhost ([::1]:52588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLpWB-0006B0-Fn for larch@yhetil.org; Wed, 10 Aug 2022 13:29:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLpVu-00069r-6Q for guix-patches@gnu.org; Wed, 10 Aug 2022 13:29:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60911) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLpVt-000455-TT for guix-patches@gnu.org; Wed, 10 Aug 2022 13:29:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oLpVt-000271-O2 for guix-patches@gnu.org; Wed, 10 Aug 2022 13:29:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56989] [PATCH v5 1/5] gnu: Add dbqn package. 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: Wed, 10 Aug 2022 17:29: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.16601524998008 (code B ref 56989); Wed, 10 Aug 2022 17:29:01 +0000 Received: (at 56989) by debbugs.gnu.org; 10 Aug 2022 17:28:19 +0000 Received: from localhost ([127.0.0.1]:50648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLpVC-000255-M7 for submit@debbugs.gnu.org; Wed, 10 Aug 2022 13:28:19 -0400 Received: from mail-qk1-f179.google.com ([209.85.222.179]:41524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLpVA-00024r-7m for 56989@debbugs.gnu.org; Wed, 10 Aug 2022 13:28:17 -0400 Received: by mail-qk1-f179.google.com with SMTP id i13so3800834qkm.8 for <56989@debbugs.gnu.org>; Wed, 10 Aug 2022 10:28:16 -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=VOOSsQ5duOTKVce7Nga8BqniatG4YColBggAhzqOPOs=; b=YZfErv+4cyqiu4alnuh8jHMLDqLAV3Cp+34z9768bcTTuHdEcNt1SwBubBBW8+6MYS WkFqDBioAhWpB2maRy4+ETvzJzzDDF3nb3LYKNxS78BSiABFU3Q7nDTiWwwK7Rx+HxB0 IttcsZ/Ajgdr/eXFESxCcRoqyBAXIt19V5tiNz3JjXd6Qq41K9TdmLfPhtWdM834liPv ZYjepuipwRRmCBxaeEg82CHpOzcWkilEMCGAscrCG+mmjWKqDALTbR7citeg1CIcGcel tGEmKF8PGMiXxjxaWUeIf6rjahJC3+NdQr4E3sfzTPNzQW74HyYHLd0XwwyWeGmK3phi FN2Q== 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=VOOSsQ5duOTKVce7Nga8BqniatG4YColBggAhzqOPOs=; b=Rwoa9C3Qk6YHgZrnsBa4JgoKF+SNJ7QERlQRft1rqch0tw162DjQEU9DEvy7NfgmcG c4ELTfd8TZNCgmF9GFPx7jkWyYXZaEU9yyKr6ppmXLvQjeeERfSZ9oJS8LRWrFROdZ3J 8Ici7ZbY1NOYqIldtonjb0xJooqt/H8vTCpnT41oy+48ZEYGILCkETHHZZsgaOFHhENp FHcjTWKbM6SQo0WfPy+wqK24yk0eRRTdX1rdtUx2ZKA3DOutUcYyYedUQkS+80UxsbOp kuOHAlxl2XKSvuwBpyPIghE6j31AuNDrw90LpTVVqtJkS/46aErC21uVnnoSlGcPH3wR 4kGA== X-Gm-Message-State: ACgBeo1z+940xI4nv43Vklwu5il0Q0eUqf2NJLuGqJgEmLzOrPDYT+Y1 HIno5EIEhdAQNzKzu33BDVUGgpp/0zI= X-Google-Smtp-Source: AA6agR6xAPiymM0Hi2VqVNonkg5UvaeoYfD6tW067gWxrCX/p9gOkl2xQo+QkHwIaqpUm3cvYCEAMg== X-Received: by 2002:a05:620a:2490:b0:6b5:fa36:c7dc with SMTP id i16-20020a05620a249000b006b5fa36c7dcmr21587117qkn.223.1660152490267; Wed, 10 Aug 2022 10:28:10 -0700 (PDT) Received: from gmail.com ([2601:547:a01:2900::a9b]) by smtp.gmail.com with ESMTPSA id u20-20020a37ab14000000b006b5d8eb2414sm174619qke.120.2022.08.10.10.28.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Aug 2022 10:28:09 -0700 (PDT) From: Christopher Rodriguez Date: Wed, 10 Aug 2022 13:27:56 -0400 Message-Id: <20220810172800.13189-1-yewscion@gmail.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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=1660152560; h=from:from:sender:sender: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: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=VOOSsQ5duOTKVce7Nga8BqniatG4YColBggAhzqOPOs=; b=U6tQ5FzeJP02U49hMuDuy2C5ar9mkRqI0PKniXtVQv8lKW2an2/eo6kfVXb0940dJrqwsN VFpVhMPzajpfVXZxrJ7T+a+eSNJr+Ul9XuDEkFT1xfeX7yfbqbj4VUh+5wA6mZiE/eMQN4 vttSW6Nog3y1zfAWx/keVZSBKNj5sXpwA9FEMppZhF8TOw18p100SM2xXBDmas4epAq6Sb Xs5CWrSpKVh9xbanw4E0LTcKcbXmzrUU3+mrDRhAgGuaVRGezsbiAhF4y/DZXSQf6aGAS7 Bb/dpaNiveEvqYpS98UZF7PE5aXrImePoZiAJblFdW6Gf9Vf6APQrQyV1xOvVw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660152560; a=rsa-sha256; cv=none; b=JsAM5JMmdaus5U51smnB+QkQnS4BvUZG4aepUK403jiqh07GxuUuRgl/nCVppWOD3agy9z O1bHHWN/sPiBSrQ8eixxeyAlGkWMFSF+6WAyk4hBUcjcDPvbymmQtOyfS6+uvuORGZ9jHO cBuPBZNMSZbDfJcmRsMowXsuKOW1iP2fjAF1httSH0ANWLu+KA6FrKj4VkphtKAYx12PUK YSL6tvscpqxpIRjGPTNlAgQhVC9CQh/VhNJVyp10W8QHBLMe75nM31cn0KeMCFpI/q3610 f5zrhN4HSUQYxzPyJYYQSrF1ZmlgNJEePL2Bh9h9Daa06upZmYQPGoRrDUSOVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=YZfErv+4; 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: 8.61 X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=YZfErv+4; 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: 614313DB4C X-Spam-Score: 8.61 X-Migadu-Spam: Yes X-Migadu-Scanner: scn1.migadu.com X-TUID: x/QSOv8Gxdon * gnu/packages/bqn.scm: Create module. * gnu/local.mk (GNU_SYSTEM_MODULES): Register module. --- gnu/packages/bqn.scm | 108 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 gnu/packages/bqn.scm diff --git a/gnu/packages/bqn.scm b/gnu/packages/bqn.scm new file mode 100644 index 0000000000..f00392a4f9 --- /dev/null +++ b/gnu/packages/bqn.scm @@ -0,0 +1,108 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 Christopher Rodriguez +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . +(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 (gnu packages) + #:use-module (gnu packages bash) + #: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 linux) + #:use-module (gnu packages compression)) +(define-public dbqn + (let ((commit "88f2b43966a75cc2c382421218eb30003bb16f4a") + (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 + "06mzvv7kmandhgwb6jwz3rivsj4ic549sy8afnb5zr6mfn5isyg5")))) + (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") + (chmod "./BQN" #o755))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (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")) + (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") zip)) + (inputs (list icedtea-8 bash-minimal)) + (synopsis "BQN implementation based on dzaima/APL") + (description + "dbqn is a java implementation of the BQN programming +language that does not need to be bootstrapped, based on an earlier java +implementation of APL by the same author.") + (home-page "https://github.com/dzaima/BQN") + (license license:expat)))) base-commit: b21d05d232ec0aba5abec20e83cc52c1d5163cc3 -- 2.37.1