From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id IBpmKAJ2AWdmWAEAqHPOHw:P1 (envelope-from ) for ; Sat, 05 Oct 2024 17:23:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id IBpmKAJ2AWdmWAEAqHPOHw (envelope-from ) for ; Sat, 05 Oct 2024 19:23:14 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Lp5NRyE6; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=IKkfZXMC; 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=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1728148994; 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=scZjI9EzJoAq1UV65RilUrvN8Neeg2mnenBKaPhgsWY=; b=e6N/NbqCpuV/LN8NNGKEnF2vxRt9T04g7znF/JX9c/1CW/pKlPJfs0grCAd/ZkkvtHOgxX fxltf09zEPH4b7p/7o7zi7r3CnR/u1LoPpMlLJxHxledzIx9KDmpkJQ46uIm8zTgKqLSe5 nyMfOcvnkh7/km/P75hskaGJx5wBmLuIpcYyDUDJIhfHfFyHD6ESeCdnSawDV95Y+Xz6lE j9kh5kOP+JQfOzBhtvkBOMUiF1mkwIfia7b39D+HyXL5EOQYoBZeSpKC7e2GgJpzrseNoY 1JA2JNAGv1wakhJ/quk7bihulFN78B6vg5j2q/do9gJI5PJn+HLrSmbf956ljg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1728148994; a=rsa-sha256; cv=none; b=somcV5kt7nkSXDNaMPsrcs92JqwBsNmXl7nh4W8uAfg1BJStQn7ml84Xf4nRd5HWWE/hvA U55cgry4xrB0dQXWDqlbrA+I/xw+Nsf1uZyqzkV5sxVjuOhqu9B9RFMUqRcX9P/ha4jalg FUwKqiaTmW6hpG8QPMd1yvVtzX8vOrHBpvVgykk3LxE5hcOnCId7eFfBrOeE4wlHe0+nTJ Z2vxceZSbPBnGHPoOaNHIAhfi9kZbntchSnC5YlGdQAbVF+3b5Cna97kxL/Fn3TsQ5cF6N umbqSp/BzO9lop3GXoGKsE9Ubh/g0JTqKppF3fO1Zg3pWVmAwRoEfWrn5dbRsg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Lp5NRyE6; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=IKkfZXMC; 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=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) 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 2F4195CB07 for ; Sat, 05 Oct 2024 19:23:14 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sx8Uf-0006qj-Mn; Sat, 05 Oct 2024 13:23:01 -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 1sx8Ud-0006q9-15 for guix-patches@gnu.org; Sat, 05 Oct 2024 13:22:59 -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 1sx8Uc-0008Tq-HL for guix-patches@gnu.org; Sat, 05 Oct 2024 13:22:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=scZjI9EzJoAq1UV65RilUrvN8Neeg2mnenBKaPhgsWY=; b=Lp5NRyE688tDJnoKvS3Uo5//IEWR4UxPdjAsp9xURGwiyM7fg197K0rOxx9bAY6yw+8Vum9Qm1SIPVoXwUjZ5jyQsDVQFD50pNVKXPt4XHA0YtMDlSGCi4jsq1BdSmuXg7bQAHMYJEwXgjqVbrt+2SWJo2fPwpbwNVesu7ojP/IeduaFfo2P4onYiqid3RgMYS7yO7F246e0en2e9vK/pOM3TfD16abluCCkwNzz87xCndfQLWrrKwp+Rluz28Ms49T2CuhqT2kIJKSTQ71zrdNMktLqDediZipd4xIG3/oYeLONOHeyzXZtYo1Q6afGFvlSqxQLDNXDqOuTygnzeA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sx8Ug-0003gB-CE; Sat, 05 Oct 2024 13:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72925] [PATCH v10] gnu: Add jpm. References: In-Reply-To: Resent-From: "Suhail Singh" Original-Sender: "Debbugs-submit" Resent-CC: glv@posteo.net, cox.katherine.e+guix@gmail.com, me@bonfacemunyoki.com, sharlatanus@gmail.com, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Sat, 05 Oct 2024 17:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72925 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 72925@debbugs.gnu.org Cc: Omar Bassam , Guillaume Le Vaillant , Katherine Cox-Buday , Munyoki Kilyungi , Sharlatan Hellseher , jgart X-Debbugs-Original-Xcc: Guillaume Le Vaillant , Katherine Cox-Buday , Munyoki Kilyungi , Sharlatan Hellseher , jgart Received: via spool by 72925-submit@debbugs.gnu.org id=B72925.172814897214125 (code B ref 72925); Sat, 05 Oct 2024 17:23:02 +0000 Received: (at 72925) by debbugs.gnu.org; 5 Oct 2024 17:22:52 +0000 Received: from localhost ([127.0.0.1]:39540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sx8UV-0003fk-CN for submit@debbugs.gnu.org; Sat, 05 Oct 2024 13:22:51 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:56831) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sx8US-0003fU-2x for 72925@debbugs.gnu.org; Sat, 05 Oct 2024 13:22:49 -0400 Received: by mail-qk1-f196.google.com with SMTP id af79cd13be357-7a99d23e036so336358885a.1 for <72925@debbugs.gnu.org>; Sat, 05 Oct 2024 10:22:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728148897; x=1728753697; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:date:message-id :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=scZjI9EzJoAq1UV65RilUrvN8Neeg2mnenBKaPhgsWY=; b=IKkfZXMCDG6lvfj9ODYwCU6fPOWaMqlKBWspuPj8XwLZUsOeqW7zHoM5+1Y1gdbbUM 3szeOsLOkqecygEngx1UjQsCbFvmwynmOi20Nl/eULppZ29/5oU2P9nCEOCzYHfZNwRo 4pELMLfcPVTMl41Ef8Z0nd8KP6CX2i2b+xxulAr+BGepwxjcJJiQnMBrSYTJ0IQJebXz kIqn6KFOk/b1pinEf/yqKTrePPzE0iWnjbuyiYUTdCanuBNCgI/RCNFia+/sDJezhAkd AnRAtDwPmpGHUsGnzhhjtg4jg6QVsX2jF5nlzZU80BF7emS1subCCWWypuLn8QOGIdSc OEug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728148897; x=1728753697; h=content-transfer-encoding:mime-version:user-agent:date:message-id :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=scZjI9EzJoAq1UV65RilUrvN8Neeg2mnenBKaPhgsWY=; b=tDZnTcRtEfMOLHhuZlBoQgesSyE6Dc0H2keN6BRKrM227DrYAvRKVtL00mb3fMosvo 07x6pZBWVP4oy3XKNiH4yZdzM/f1FYg/7VAP83sHUP8Pp0GCdx8a+9ABcVhK1Sj+uKkj ThpJ22JLV6x/Qix4HKlHLUwYv/7H3O3dJpp2s1YprZ7TQ0jwl9kwcbvsTpcaF7yrwbqW lPE6n8n03ZqcYY+6HCzFM0XYUL54Ma9l1p5y+hlb5xl0rQuTa6Ki/X/9338IQ9Ql/8/3 SJ5U2/nYa7HeFYBQeiuA6s2s0S+MiVP95ATxO+J9b+x3YzyC+ffKRNw8cUug29dX2zA7 bGng== X-Gm-Message-State: AOJu0Yw3uHyPJi4LonJgjQj0nvo68qVhAAbAcCErqknCCx6CulDDs8ds mFJ6SYbL7D8gfj35++yxTg9DD5XrjAVznGZl3dYgEmprz/0cMH2jSepI8AyY X-Google-Smtp-Source: AGHT+IGdQGBP4u/fRugflNqhxcQ+01HTsHLlmnQTVRvvbXHPbGUX/OLZvFBxZWUuv6bqkCP8tXlSyA== X-Received: by 2002:a05:620a:240a:b0:7ac:a0e6:70c with SMTP id af79cd13be357-7ae6f49da89mr1036026285a.60.1728148897476; Sat, 05 Oct 2024 10:21:37 -0700 (PDT) Received: from gnus ([142.115.189.80]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7ae756611cesm94894385a.73.2024.10.05.10.21.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Oct 2024 10:21:36 -0700 (PDT) From: "Suhail Singh" Message-ID: <6e198e7dc1f64bea3a2b1498fb69e597e4d03360.1728148557.git.suhail@bayesians.ca> Date: Sat, 05 Oct 2024 13:21:24 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 1.17 X-Spam-Score: 1.17 X-Migadu-Queue-Id: 2F4195CB07 X-Migadu-Scanner: mx13.migadu.com X-TUID: gH4EGXA3W3y1 * gnu/packages/lisp.scm (jpm): New variable. Change-Id: I730ef2f5c874c5142a580a42af76180e95d93ccd Signed-off-by: Suhail --- gnu/packages/lisp.scm | 77 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index 6c16d8ab71..48cf9dffab 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -29,6 +29,7 @@ ;;; Copyright =C2=A9 2024 Andreas Enge ;;; Copyright =C2=A9 2024 bigbug ;;; Copyright =C2=A9 2024 Ashish SHUKLA +;;; Copyright =C2=A9 2024 Omar Bassam ;;; ;;; This file is part of GNU Guix. ;;; @@ -62,6 +63,7 @@ (define-module (gnu packages lisp) #:use-module (guix build-system gnu) #:use-module (guix build-system haskell) #:use-module (guix build-system trivial) + #:use-module ((guix search-paths) #:select ($SSL_CERT_DIR $SSL_CERT_FILE= )) #:use-module (gnu packages admin) #:use-module (gnu packages algebra) #:use-module (gnu packages autotools) @@ -69,6 +71,7 @@ (define-module (gnu packages lisp) #:use-module (gnu packages bash) #:use-module (gnu packages bdw-gc) #:use-module (gnu packages boost) + #:use-module (gnu packages certs) #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages crypto) @@ -917,6 +920,80 @@ (define-public janet assembler, PEG) is less than 1MB.") (license license:expat))) =20 +(define-public jpm + (package + (name "jpm") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/janet-lang/jpm") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "05rdxigmiy7vf93s16a8n2029lq33073jccz1rjl4iisxj6piw4l")))) + (build-system copy-build-system) + (arguments + (list + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'fix-paths + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "configs/linux_config.janet" + (("/usr/local") + #$output) + (("\"cc\"") + (string-append "\"" + #$gcc "/bin/gcc" "\"")) + (("\"c\\+\\+\"") + (string-append "\"" + #$gcc "/bin/g++" "\"")) + (("\"git\"") + (string-append "\"" + #$git "/bin/git" "\"")) + (("\"curl\"") + (string-append "\"" + #$curl "/bin/curl" "\""))) + (substitute* "jpm/shutil.janet" + (("cp") + (string-append #$coreutils "/bin/cp"))) + (setenv "PREFIX" + #$output))) + (replace 'install + (lambda _ + (for-each (lambda (dir) + (mkdir-p (string-append #$output "/" di= r))) + '("lib/janet/jpm" "share/man/man1")) + (invoke "janet" "bootstrap.janet" + "configs/linux_config.janet") + (wrap-program (string-append #$output "/bin/jpm") + `("JANET_HEADERPATH" ":" =3D + (,(string-append #$janet "/include/janet"))) + `("JANET_LIBPATH" ":" =3D + (,(string-append #$janet "/lib"))))))))) + (inputs (list bash-minimal)) + (propagated-inputs (list janet + ;; Lazily resolve the gcc-toolchain to avoid a + ;; circular dependency. + (module-ref (resolve-interface '(gnu packages + commencement= )) + 'gcc-toolchain))) + ;; NOTE: Below ensures that the user provides the CA certificates they + ;; desire (as opposed to bundling `nss-certs' in propagated-inputs, wh= ich + ;; isn't recommended) and when they do, that they are respected. + ;; + ;; FIXME: It's unclear why `search-paths', instead of + ;; `native-search-paths', doesn't work. + (native-search-paths + (list $SSL_CERT_DIR $SSL_CERT_FILE)) + (home-page "https://janet-lang.org/") + (synopsis "Janet Project Manager for the Janet programming language") + (description + "@code{jpm} is the Janet Project Manager tool. It is a build +tool and its main uses are installing dependencies, compiling C/C++ to nat= ive +libraries, and other management tasks for Janet projects.") + (license license:expat))) + (define-public lisp-repl-core-dumper (package (name "lisp-repl-core-dumper") base-commit: 73ec844389e91cb0f5a2647070516fc8d19d8730 --=20 2.46.1