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 0DOqGv228WLE3QAAbAwnHQ (envelope-from ) for ; Tue, 09 Aug 2022 03:23:09 +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 0B/XGv228WJ+wQAA9RJhRA (envelope-from ) for ; Tue, 09 Aug 2022 03:23:09 +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 4A77316F28 for ; Tue, 9 Aug 2022 03:23:08 +0200 (CEST) Received: from localhost ([::1]:40086 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLDxb-00018o-Dw for larch@yhetil.org; Mon, 08 Aug 2022 21:23:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55584) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLDxW-00018g-Ue for guix-patches@gnu.org; Mon, 08 Aug 2022 21:23:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52420) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLDxW-0006b2-Hw for guix-patches@gnu.org; Mon, 08 Aug 2022 21:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oLDxW-0006sG-BT for guix-patches@gnu.org; Mon, 08 Aug 2022 21:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56989] [PATCH v4] 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: Tue, 09 Aug 2022 01:23: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: 56989@debbugs.gnu.org Cc: Christopher Rodriguez Received: via spool by 56989-submit@debbugs.gnu.org id=B56989.166000814126339 (code B ref 56989); Tue, 09 Aug 2022 01:23:02 +0000 Received: (at 56989) by debbugs.gnu.org; 9 Aug 2022 01:22:21 +0000 Received: from localhost ([127.0.0.1]:42169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLDwr-0006qj-AR for submit@debbugs.gnu.org; Mon, 08 Aug 2022 21:22:21 -0400 Received: from mail-qv1-f47.google.com ([209.85.219.47]:44578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLDwp-0006qU-4a for 56989@debbugs.gnu.org; Mon, 08 Aug 2022 21:22:19 -0400 Received: by mail-qv1-f47.google.com with SMTP id mk9so7581108qvb.11 for <56989@debbugs.gnu.org>; Mon, 08 Aug 2022 18:22:19 -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=xZSeZwSx7pBuKiN8/IDo2ASGMJaAP07KYkdnq/AmFec=; b=c9zbDBNpYj3E0S2l5HlBeXtbRdua1H+BJhN/Yzgbg9i4lslQGFwCzPrICvDmQUaOBc DBows9ZMGrwPRohw08l0dBsv3Hq6zujqCMXZFfiDsm6GqJOguQR94hyO1xi21U96xIpu 8ReKmhpgJuJotJD4Jaufr2+CiTr4Fo60Bb1ZG/ERNz4Vhoja6Jgy0uTKG8nxMrEVimlG Fc6FtqPgQPJDpjd+6zMON/BTZH6hpOGBh4zfKJPH6JoSHrYkYMAl4kxLdufbZsVySoQr SanoKyNGAHYDphwic5nRyUDWIk3q2q+1tAxG1a4T3+Ec0lGvORdE5TWW/75kDZwxAy1z Gxyw== 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=xZSeZwSx7pBuKiN8/IDo2ASGMJaAP07KYkdnq/AmFec=; b=5DvBHccbkvrqaxkflajQ13QGa10zOacrCWiuIS2tY+XoFrE+s1YFPfkFMmWvQ6LGJn WK9NWMMoW6VElcayZpjLl1ZO6Ssau/EkmClbid834YWWWDUFaNkewL+LreztshU4NDic X9+qnYZ9uIltOxcmrgp3fCIivCz5vosDYraKL2beavft0nHPob+aoMyFoTu3sdq1MAG3 syQ1KGhKJXD1i53BSSDLf/h798wBWzuBihmvTJYH+h8Z/OzZcB5/D/ktBBt4nC+NW3Dg b0guGvEzeL3oaRTMuLGczEDg9IHcRr4wa8MijHrEky7/N2uJ0rYeroX3kvWjdim+/+8Y b0lg== X-Gm-Message-State: ACgBeo2Z9+G2ftSbvwJ2vsj17nmugObLG+9ZJmOxy6XfDiKIv3SF0F3E 4I61XQ8Mk4dh/XX8qc7nA1wIn6kekFI= X-Google-Smtp-Source: AA6agR6CJjWWP9shL0JBhQ2DxHlMcQ6dceEJBbw7dEhghGEj4+WRKLJcqxavI6FpRBmBNpq/aO3dKA== X-Received: by 2002:a0c:e14e:0:b0:473:8550:94a2 with SMTP id c14-20020a0ce14e000000b00473855094a2mr17332380qvl.116.1660008133214; Mon, 08 Aug 2022 18:22:13 -0700 (PDT) Received: from gmail.com (ec2-44-193-71-234.compute-1.amazonaws.com. [44.193.71.234]) by smtp.gmail.com with ESMTPSA id cd11-20020a05622a418b00b0034308283775sm282838qtb.21.2022.08.08.18.22.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Aug 2022 18:22:12 -0700 (PDT) From: Christopher Rodriguez Date: Mon, 8 Aug 2022 21:22:05 -0400 Message-Id: <20220809012205.8692-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=1660008188; 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=xZSeZwSx7pBuKiN8/IDo2ASGMJaAP07KYkdnq/AmFec=; b=Zwb09geYxcbsi/nWJGlETSMZm5jrQ4AAffzj8JP2v7aaExA0LDwGzeS8TacwPfMmZiW1BC kEf4W7ArGCCIvCVQotFAFlCgcaPRjcQQpn0eieA1f9+x8ddwU1xlOxmREqHEg6SSay04p+ ntPwOQbfCk4eDOt8uHFUhyIwhqzYzAEkEDXCfBIrMBX2yHdsX9X+/9jsPhxEADts6qp/lL FxwcaAqV8ArR3VD2my9ZAO6robM2WPUuwT5PkwRj7r1+YosVEnlmGO8EA30o4WVd54Hw9+ AnIzlVbsvkhwED1SwvxQp1oSJZLv5nOiLR16qi40TZQMN7oD7pLIWeybRXZarA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660008188; a=rsa-sha256; cv=none; b=Agj4VJUxJr7r6ioN62rkr6rMreZL0G93hktnY0KlkDSm0ZimSIy1Q/KO2Q2uGyqpdCaoxT 0OPM6rdGiq/R7ecpkLlkU0nTvtGfE6RPUrSLdlLPHwzr6/lgr92n43YdtaBif7qFjDMIlQ mU3oyw4r1ldqw1DqRAhZv7ZVsDSkMV/1XeGV3rrtEOkmFZufjNZ2SL0blA2di2/Y37Zzo0 Qa5pSjtOzNPiYPd+ti4Sw2qFBeLD6WHhLIEZpmR/0qPOvWv0tCgQERU0/q5+7YESksziG/ HIDl0HbQ02J1MFqfqr/yOMByZbjSgufMUxfZ2iCMzSufkji7awLSriULMkeVmw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=c9zbDBNp; 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.11 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=c9zbDBNp; 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: 4A77316F28 X-Spam-Score: 7.11 X-Migadu-Scanner: scn1.migadu.com X-TUID: 3s0JULK9gib+ * gnu/packages/bqn.scm: Create module. * gnu/local.mk (GNU_SYSTEM_MODULES): Register module. --- gnu/local.mk | 1 + gnu/packages/bqn.scm | 105 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 106 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..1fc2dc82af --- /dev/null +++ b/gnu/packages/bqn.scm @@ -0,0 +1,105 @@ +;;; 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 compression)) +(define-public dbqn + (package + (name "dbqn") + (version "0.2.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dzaima/BQN") + (commit "0bbe096fc07d278b679a8479318f1722d096a03e"))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1kxzxz2hrd1871281s4rsi569qk314aqfmng9pkqn8gv9nqhmph0")))) + (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: 116c0268ffd387c88b6b47135203fb330eb422f0 -- 2.37.1