From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oMzEI94+wWR09gAASxT56A (envelope-from ) for ; Wed, 26 Jul 2023 17:42:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mIbCI94+wWRs8wAA9RJhRA (envelope-from ) for ; Wed, 26 Jul 2023 17:42:22 +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 192CD44CAC for ; Wed, 26 Jul 2023 17:42:22 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pm.me header.s=protonmail3 header.b=BnQHyHTT; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690386142; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: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=1CpWQ1hgt9VDlJKELW1ObsWM7Qq1VLLu6RbEaNxT5oY=; b=bRrdQHgAMA+2EDARkEPeA56EbbeYvpuxSH5zuhzlBBFmAfIcXl7Aoy4xOgUh5z28RVRSdd 8cpCzcsRQMaXOsu8Yw7OimHNLeBz9DPWk5/mB+toNdHKwGVkYTxn/iN4S7C7CbwrUlFiNX c6ffHKYnL7auC7f8nbdAPHTspCenT0sui5PMBoD0xdAUk5YqOR47repRw5IS+u1Thny6e1 hd55tsNlfjdGKNYf/5/V6XBCLZ8eG9xcqG5Gk8AJkCIP7k02gRUFRLMZZoG5d3pGFzUsvP TEt8aVBNO1kmq0P/pPMPHepFyQXo5QFG+72zRU7WKLH3IgBNvC3VM3fUdsoDqQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690386142; a=rsa-sha256; cv=none; b=J9UGJpzY+yPz/jqgXYQ7g6o5DXGF37AXnkUKKBLcdCqFiMMubkP8lEt65jlJWSlcSGKNm9 47Wbz7pFJDPsKRn+7Up+ZP2QcxjfdxxzsQJGNjsLAqNtUvxqA3TcSFaQnAwV/lkqDKRsCh 9vHv1wQp8LKo40wZC0WgVKWCNY4gzDdEXhDPRQVgyrzdb1HMV1Z/zldXENzbOmfQzqaLPQ QzSIKss5zTW39AUuhRw6SSaWNn9wgHMJTNMrXwy8Y1ZFXI2LPD6rYz2UinHj7pfY8yYFXw SdH5iG8Pj9ZqKmcbxLeZcPObT2KfHiVXRsxHhiH9Oeo/+nvuWv2ih0K8T1srww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pm.me header.s=protonmail3 header.b=BnQHyHTT; 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"; dmarc=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOg97-0000oI-Ha; Wed, 26 Jul 2023 11:09:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOfwm-00055L-KE for guix-patches@gnu.org; Wed, 26 Jul 2023 10:57:05 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qOfwl-0002T3-Cj for guix-patches@gnu.org; Wed, 26 Jul 2023 10:57:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qOfwl-0002u3-3o for guix-patches@gnu.org; Wed, 26 Jul 2023 10:57:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#31250] [PATCH] Add leiningen References: In-Reply-To: Resent-From: =?UTF-8?Q?Przemys=C5=82aw_?= =?UTF-8?Q?Kami=C5=84ski?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 26 Jul 2023 14:57:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31250 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: moreinfo patch To: 31250@debbugs.gnu.org Received: via spool by 31250-submit@debbugs.gnu.org id=B31250.169038342011134 (code B ref 31250); Wed, 26 Jul 2023 14:57:03 +0000 Received: (at 31250) by debbugs.gnu.org; 26 Jul 2023 14:57:00 +0000 Received: from localhost ([127.0.0.1]:49811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOfwh-0002tP-6j for submit@debbugs.gnu.org; Wed, 26 Jul 2023 10:56:59 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:40649) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOeSk-0007uQ-Od for 31250@debbugs.gnu.org; Wed, 26 Jul 2023 09:22:00 -0400 Date: Wed, 26 Jul 2023 13:21:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1690377711; x=1690636911; bh=1CpWQ1hgt9VDlJKELW1ObsWM7Qq1VLLu6RbEaNxT5oY=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=BnQHyHTTT4fssFmbATfDv1POwpUjEDn8yDH29F8TPZTkt1swp1D93fNAcbH7J51uB cRh4IlJSNdsMOGQ0VBCD78ukItBaBAYvyefv618sIAobY4q4hT6m3wOUpXQ3cqQYM6 /RD1P3/7JhVQ6XXbsHtBQimpcu4o6Sy5jK0jnE+lqnl4mfQm2A+8sjm3XJMvgqeKBL K7cg8T238Pr3NQ83+oWNk2HKCpDlCbwMhPB6uhH086jLhjDIjOot2ykB2OCfDxBYSo FGGiobZTsaXZLTYLLmtY3D3LcGSDQEdUu1pKpxeliVNj3OGBQMy8DrNkjC28lAI7ZU jFkwAby31e9Ng== Message-ID: <87r0oukduz.fsf@intrepidus.pl> Feedback-ID: 5924613:user:proton MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha256; boundary="------a3642df3a011868f4e41600e95df3f6e80f61ed10b82ab1e1d1a222e41cf936a"; charset=utf-8 X-Mailman-Approved-At: Wed, 26 Jul 2023 10:56:56 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Wed, 26 Jul 2023 11:09:47 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: =?UTF-8?Q?Przemys=C5=82aw_?= =?UTF-8?Q?Kami=C5=84ski?= X-ACL-Warn: , =?utf-8?q?Przemys=C5=82aw_Kami=C5=84ski_via_Guix-patches?= From: guix-patches--- via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: -8.64 X-Spam-Score: -8.64 X-Migadu-Queue-Id: 192CD44CAC X-TUID: T/usN8SNJh3O This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------a3642df3a011868f4e41600e95df3f6e80f61ed10b82ab1e1d1a222e41cf936a Content-Type: multipart/mixed; boundary=be4c7eaecce26cf071aff491c603b85753d433a149439ccec4edb7c5b66f From: =?utf-8?Q?Przemys=C5=82aw_Kami=C5=84ski?= To: 31250@debbugs.gnu.org Subject: [PATCH] Add leiningen Date: Wed, 26 Jul 2023 15:21:24 +0200 Message-ID: <87r0oukduz.fsf@intrepidus.pl> MIME-Version: 1.0 --be4c7eaecce26cf071aff491c603b85753d433a149439ccec4edb7c5b66f Content-Type: text/plain; charset=UTF-8 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hello, I did take a look at what Nix does and apparently one should use lein-pkg instead of lein and perform some regexp replaces. Here's what I have, but it doesn't work since my Guix knowledge is too small (I added comments where appropriate, also I think it's better to use Codeberg than GitHub): ``` (use-modules (guix) (guix download) ((guix licenses) #:prefix license:) (guix packages) (guix build-system ant) (guix build-system copy) (gnu packages clojure) (gnu packages wget)) (define-public leiningen-jar-standalone ;; 1. fetch https://codeberg.org/attachments/43cebda5-a7c2-405b-b641-5143a00051b5 (leiningen-2.10.0-standalone.jar) (package (name "leiningen-jar-standalone") (version "2.10.0") (source (origin (method url-fetch) (uri (string-append "https://codeberg.org/attachments/43cebda5-a7c2-405b-b641-5143a00051b5")) (file-name (string-append "leiningen-" version "-standalone.jar")) (sha256 (base32 "0d5vmpyp9ddxpj1s5c60fv2f5iimz1chbgfhchlaqxa0sfx9jwnj")))) (build-system copy-build-system) (home-page "https://leiningen.org") (synopsis "Automating Clojure projects without setting your hair on fire") (description "Leiningen is the easiest way to use Clojure. With a focus on project automation and declarative configuration, it gets out of your way and lets you focus on your code.") (license license:epl1.0))) (define-public leiningen (package (name "leiningen") (version "2.10.0") (source (origin (method url-fetch/tarbomb) ;; https://codeberg.org/leiningen/leiningen/archive/2.10.0.zip (uri (string-append "https://codeberg.org/leiningen/" name "/archive/" version ".tar.gz")) (sha256 (base32 "0hxp8qlxcn7svskvvhalyk0ajaqd56nma03vq96w7d2ajghdn13b")))) (build-system ant-build-system) (arguments `(#:phases (modify-phases %standard-phases (delete 'configure) (delete 'build) (delete 'check) ;; TODO ;; 2. replace 'LEIN_JAR=/usr/share/java/leiningen-$LEIN_VERSION-standalone.jar' "LEIN_JAR=$out/share/$JARNAME" ;; 3 . wrapProgram $out/bin/lein ;; --prefix PATH ":" "${lib.makeBinPath [ rlwrap coreutils ]}" ;; --set LEIN_GPG ${gnupg}/bin/gpg ;; --set JAVA_CMD ${jdk}/bin/java (replace 'install (lambda* (#:key outputs #:allow-other-keys) (install-file (string-append ,name "/bin/lein-pkg") (string-append (assoc-ref outputs "out") "/bin/lein"))))))) (native-inputs (list leiningen-jar-standalone)) ;; (build-inputs (list clojure clojure-tools)) (home-page "https://leiningen.org") (synopsis "Automating Clojure projects without setting your hair on fire") (description "Leiningen is the easiest way to use Clojure. With a focus on project automation and declarative configuration, it gets out of your way and lets you focus on your code.") (license license:epl1.0))) leiningen ``` -----BEGIN PGP SIGNATURE----- iIMEARYIACsWIQQeBFZmqKTSqjEi1nTzlEDXxNbhWAUCZMEd1A0cY2dlbmllQHBt Lm1lAAoJEPOUQNfE1uFYOFwBAJ2bDsW2vrysvvcWLgwpOCpz0wKvNGYSdFA/9ZJv aNsOAQCBI3BQxW7ZDU4moGSaw/27n1k6oKP90PVID8J+RojHDg== =5cDc -----END PGP SIGNATURE----- --be4c7eaecce26cf071aff491c603b85753d433a149439ccec4edb7c5b66f Content-Transfer-Encoding: base64 Content-Disposition: attachment; name="publickey - cgenie@pm.me - 9cc42b0a.asc"; filename="publickey - cgenie@pm.me - 9cc42b0a.asc" Content-Type: application/pgp-keys; name="publickey - cgenie@pm.me - 9cc42b0a.asc"; filename="publickey - cgenie@pm.me - 9cc42b0a.asc" LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tClZlcnNpb246IEdvcGVuUEdQIDIu Ny4xCkNvbW1lbnQ6IGh0dHBzOi8vZ29wZW5wZ3Aub3JnCgp4ak1FWXlBTExSWUpLd1lCQkFIYVJ3 OEJBUWRBQzJvZDFuYVZKbWJVWU52QzRTZmNjRm9GMUhpcXcrTTdhcmVKCjBaOFdpSGJORzJOblpX NXBaVUJ3YlM1dFpTQThZMmRsYm1sbFFIQnRMbTFsUHNLTUJCQVdDZ0FkQlFKaklBc3QKQkFzSkJ3 Z0RGUWdLQkJZQUFnRUNHUUVDR3dNQ0hnRUFJUWtRZ2xLMkhtL0tQa2tXSVFTY3hDc0tKR0FZOGRn dwpTRzZDVXJZZWI4bytTVkhNQVFDamdMNWNFS1Eyck02T3IrTWptam5KRXk0TDJjaGZQdUE0eDBT WmRPV3dmUUVBCmczMFJPQmhqQ3JtaGdPUDJqdFR1VEJWdXBEeFJUWHRHN2dyQ1ZESm04d25PT0FS aklBc3RFZ29yQmdFRUFaZFYKQVFVQkFRZEFOMi8yc2N0STdweEJicXREeTF0N2x4cmRKM0lTZGc4 bGxkL0l6dU13dWhVREFRZ0h3bmdFR0JZSQpBQWtGQW1NZ0N5MENHd3dBSVFrUWdsSzJIbS9LUGtr V0lRU2N4Q3NLSkdBWThkZ3dTRzZDVXJZZWI4bytTWUR5CkFQNHhXVENaVnJCem1OY3F5OEJhaE5O ZnJlekc5OEl2c1VEUnlhVjhhdVg3M0FEK0lzMXhLc214WUsxN0IxOC8KMlFzUVI1SUVlUmRiTGJ6 dmVMb1FGdlR2Z1FRPQo9RkR3NAotLS0tLUVORCBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0t --be4c7eaecce26cf071aff491c603b85753d433a149439ccec4edb7c5b66f-- --------a3642df3a011868f4e41600e95df3f6e80f61ed10b82ab1e1d1a222e41cf936a Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: ProtonMail wnUEARYIACcFAmTBHeEJkIJSth5vyj5JFiEEnMQrCiRgGPHYMEhuglK2Hm/K PkkAAMBUAPoDZoOPGoyH+2sdxp6RZaJGdlMdEb+PXITFuAEoPHD8GAEA9v4g zxAxq9nYAOQyclUQFdKH5usIdkMa3HKo+NbYEwg= =OLZR -----END PGP SIGNATURE----- --------a3642df3a011868f4e41600e95df3f6e80f61ed10b82ab1e1d1a222e41cf936a--