From patchwork Tue Oct 8 03:31:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Suhail Singh X-Patchwork-Id: 36650 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B437427BBE9; Sun, 5 Jan 2025 22:31:44 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0B90A27BBE2 for ; Sun, 5 Jan 2025 22:31:43 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUZ9K-0002wK-Qu; Sun, 05 Jan 2025 17:31:10 -0500 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 1tUZ9J-0002wA-P8 for guix-patches@gnu.org; Sun, 05 Jan 2025 17:31:09 -0500 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 1tUZ9J-0006o8-Gv for guix-patches@gnu.org; Sun, 05 Jan 2025 17:31:09 -0500 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:In-Reply-To:From:To:References:Subject; bh=cdibrNKha1/ItOQt6Tm3aI33gJc2DMjfkEq8UOR12Ws=; b=pxbCGWtNd2vUqvY4Go7Br728KUo5PZO1AaI+EMsZ9c7E1v5bo9L3vgcuEF9aTDWJiWav05rzt0tn5yjV7+M8ukQWUJlP93SJy9z4LSnT9xSwLqdMaaEbP0SHICE68ulx590QnvsvmZYhSznAZkVVCimyCwCnBqvnX3TqcN7K7UCW2esFsPrvfY0/dSN5UwIuQ+8arrQF1YxuVXcemLAuj7O/BzbUwKS8xVEKfQV8t5ezlLDDhNCRvtVzCnMv8JTQef24ui7PI3QCoTstFQtWerf7bYyQkHWGnu7rc8i1q7btcl0EhQviURQwUa2E+yl9pUW1V+CrkfqTKe/jntJ1ig==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUZ9C-0007zR-QN; Sun, 05 Jan 2025 17:31:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#72925] [PATCH v14 1/2] gnu: Add jpm package. References: 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: Sun, 05 Jan 2025 22:31: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: 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.173611626030695 (code B ref 72925); Sun, 05 Jan 2025 22:31:02 +0000 Received: (at 72925) by debbugs.gnu.org; 5 Jan 2025 22:31:00 +0000 Received: from localhost ([127.0.0.1]:35713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUZ99-0007yz-Bu for submit@debbugs.gnu.org; Sun, 05 Jan 2025 17:30:59 -0500 Received: from mail-qk1-x744.google.com ([2607:f8b0:4864:20::744]:59749) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tUZ95-0007yZ-Nk for 72925@debbugs.gnu.org; Sun, 05 Jan 2025 17:30:57 -0500 Received: by mail-qk1-x744.google.com with SMTP id af79cd13be357-7b700c13edaso731348185a.3 for <72925@debbugs.gnu.org>; Sun, 05 Jan 2025 14:30:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736116250; x=1736721050; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:in-reply-to :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=cdibrNKha1/ItOQt6Tm3aI33gJc2DMjfkEq8UOR12Ws=; b=IrmdeTv0hKp4T9vMFbYwukBSNPS5kHemMwRoEbcPJupnja0BmAsFzVIqAiP7mh/aTJ 8/aNdMg5FfvqFAhVtEllScQMOKQMk5fYlaPW7y2f3ZevZ6HGpS+UNDlUkBWRSl5Dl9vb M2kqZGIFryMtoCmUrOAUld1aOcbXUx+jscLw6va2jNFQ0W3RPifjV2fNZAoeL6C7xFvJ XBjCma11tzVjyLsj0D92ayg2xeEwzk1jtDVVCpFH3Z6XFc2wjFo5GtQhqPSbr/SupfXj hFcuE1uqWY763Nv/zpz5+bt1TdkXBBWBzsRyd6OKHEgp1hNRKBncSv7e3MNNNsWlyrlM bwGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736116250; x=1736721050; h=content-transfer-encoding:mime-version:message-id:date:in-reply-to :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=cdibrNKha1/ItOQt6Tm3aI33gJc2DMjfkEq8UOR12Ws=; b=ET9zboNRr/CE6uxoXQVJMJtccVbai9vvCfF18a0Cq7Z1EkqfGTZlwCiu8P45xkY6gN 2m9IGWRZW3f2J/7Yrk5NCgggWNtQT0o1/ECRNszix+YYGgYHi14ciqhw0n245XSyQ4Cq 8092rLjFgnDeVKwI9atLpxyBzaZ/uTfkbDB8q8hg/hO6t8h8FFymhnAEkHDNViDUUz9D NIfPfln/s71Dsc2K4M5WLUH+4p55Uoz20KNQVJNCFUldyit0jda8eTxeaJ3hwJs+AmIQ WVQlsU7/2akerkVyipspz3yC/LVBjL19uzGJsfVmf+EasBd0LtPJ1Rhn6CI86jNy1kNQ PIAg== X-Gm-Message-State: AOJu0YzMLzu7ONeL28gk8IsAPBIYwYnB6eUhAYHwQnPIsGfKKrV2QImz 33XFpLb9jiEfuX0VfCApydGNAJB/8oV/KwKdlA0AufEzmdd97aI6gNY8S7+4 X-Gm-Gg: ASbGncvXkN/R4YnsVaNJdCJlSXWJ9h8D40GZsQcNGLucF+5idw7kxaxepi6h3FmvqOY 39ZAX+vV3EVaM1GvAvLROmGcufJ7mXiRLG9RF6LHIDSKZ7V0CT0Y72dFzmqLlzFWCGb6Dx8gCCw i37ZVQR1S0rtJVnr/HDhbMPKK7j2TyMuVtEG28Vx8bzgX3ToPVj7EsLcnd4UkRD2FZzGba4xltQ Df4P1YBrqsARkCcIYQHTHmvetsxCnqWpKLZNWp12BKVrBvJUu7c X-Google-Smtp-Source: AGHT+IFL/+xLxTMoPNnsvjscOvykNaJngadqlitJ1o6SUFDj9zJb9sEZsZIJt9ZldjGXCGnsYhsNdg== X-Received: by 2002:ad4:5c6a:0:b0:6d8:9d81:2107 with SMTP id 6a1803df08f44-6dd2332dfa2mr814740316d6.20.1736116249723; Sun, 05 Jan 2025 14:30:49 -0800 (PST) Received: from gnus ([70.26.179.129]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6dd181d5aabsm164735306d6.108.2025.01.05.14.30.48 for <72925@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jan 2025 14:30:49 -0800 (PST) From: "Suhail Singh" In-Reply-To: Date: Mon, 7 Oct 2024 23:31:57 -0400 Message-Id: MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/lisp.scm (jpm): New variable. Change-Id: I9f5ab89a38622689b5d3545abe5d87906dc61f3b Signed-off-by: Suhail --- gnu/packages/lisp.scm | 73 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index 9cc630eec2..f99ad68828 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -29,6 +29,7 @@ ;;; Copyright © 2024 Andreas Enge ;;; Copyright © 2024 bigbug ;;; Copyright © 2024 Ashish SHUKLA +;;; Copyright © 2024 Omar Bassam ;;; Copyright © 2024 David Pflug ;;; Copyright © 2024 Janneke Nieuwenhuizen ;;; @@ -64,6 +65,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) @@ -919,6 +921,77 @@ (define-public janet assembler, PEG) is less than 1MB.") (license license:expat))) +(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 "\"" + (search-input-file inputs "/bin/gcc") + "\"")) + (("\"c\\+\\+\"") + (string-append "\"" + (search-input-file inputs "/bin/g++") + "\"")) + (("\"git\"") + (string-append "\"" + (search-input-file inputs "/bin/git") + "\"")) + (("\"curl\"") + (string-append "\"" + (search-input-file inputs "/bin/curl") + "\""))) + (substitute* "jpm/shutil.janet" + (("cp") + (string-append (search-input-file inputs "/bin/cp")))) + (setenv "PREFIX" + #$output))) + (replace 'install + (lambda _ + (for-each (lambda (dir) + (mkdir-p (string-append #$output "/" dir))) + '("lib/janet/jpm" "share/man/man1")) + (invoke "janet" "bootstrap.janet" + "configs/linux_config.janet") + (wrap-program (string-append #$output "/bin/jpm") + `("JANET_HEADERPATH" ":" = + (,(string-append #$janet "/include/janet"))) + `("JANET_LIBPATH" ":" = + (,(string-append #$janet "/lib"))))))))) + (inputs (list bash-minimal + coreutils-minimal + curl + gcc + git-minimal/pinned)) + (propagated-inputs (list janet)) + (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 native +libraries, and other management tasks for Janet projects.") + (license license:expat))) + (define-public lisp-repl-core-dumper (package (name "lisp-repl-core-dumper") From patchwork Tue Oct 8 03:22:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Suhail Singh X-Patchwork-Id: 36651 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5FFC827BBEA; Sun, 5 Jan 2025 22:32:23 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id DA75827BBE2 for ; Sun, 5 Jan 2025 22:32:22 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUZAD-00036p-Jn; Sun, 05 Jan 2025 17:32:05 -0500 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 1tUZAC-00036h-5C for guix-patches@gnu.org; Sun, 05 Jan 2025 17:32:04 -0500 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 1tUZAB-0006rR-3o for guix-patches@gnu.org; Sun, 05 Jan 2025 17:32:03 -0500 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:In-Reply-To:From:To:References:Subject; bh=0ZlKn2Hgndbawu/M/HUtuyHym9j/CljB0id0CwkGC7g=; b=sv7I65wvv8A9AI/xuMSweQm5BQ583kXNVi4aaj43rrAgmyjhKiJFXNm67JB5SvmxskG8sBT7Hrhvsgj/S+CtPySKu8M4IAwMpF81HVwvCwNCRNSlZEEqq/IjOo9C6xxEU4XGszEtKIdKJkuYg103Fj1pL6tUWXTb/Q9sSkt2UuyGpSLGQWHvgXW7plF6ZltfohIfHi6i90I9I7bbjVZ4ORSnAkCMU+2RmQ30Pio5hHKqyZTOsgHqVbCX2/4gW5dyU1kWqRPvC4puXPL32F/LwbsIsjyHZE4+MriSjYN01vBqbpR327nKWFRFGPY1tXcYlb3MkhWNNGNYOCkNT/VgUw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUZAA-00081q-Cn; Sun, 05 Jan 2025 17:32:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#72925] [PATCH v14 2/2] gnu: Improve user-experience for jpm. References: 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: Sun, 05 Jan 2025 22:32: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: 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.173611627230764 (code B ref 72925); Sun, 05 Jan 2025 22:32:02 +0000 Received: (at 72925) by debbugs.gnu.org; 5 Jan 2025 22:31:12 +0000 Received: from localhost ([127.0.0.1]:35726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUZ9M-000807-2x for submit@debbugs.gnu.org; Sun, 05 Jan 2025 17:31:12 -0500 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]:61440) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tUZ9J-0007zu-3G for 72925@debbugs.gnu.org; Sun, 05 Jan 2025 17:31:10 -0500 Received: by mail-qt1-x844.google.com with SMTP id d75a77b69052e-467a37a2a53so169642191cf.2 for <72925@debbugs.gnu.org>; Sun, 05 Jan 2025 14:31:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736116268; x=1736721068; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:in-reply-to :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=0ZlKn2Hgndbawu/M/HUtuyHym9j/CljB0id0CwkGC7g=; b=G9SeYVfnGZtq7PxgrvBsUiOwHWPdrZAMgWlvYOG7qIVCeu1MqepTGExG5rTlP5Ojsv 7+jgOIwbEcLKZ/giLZbZJLq87fj8L4tRF09Hm33jNUpk0mDKB3LpP8MlgZEgzJAkXOZe /NkQ/vXCjMjBSlIHShr+Dq0UoxKhfr7oP7zDcwAcCnd6PqYysOxnkjnSSsDCMQ67dM6f KU0g78TVjfp4cQVqn5v/0XC/7XNMhcs3xhkPJu43ySLG8yu121IT4EEcIohqKhIXsPHJ tmG21jn1K5ZBPk29n1EU9ggv62clOyLro3tbS9legTO0QgCdlmK+/YF3lhhZ6teWIICm eLww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736116268; x=1736721068; h=content-transfer-encoding:mime-version:message-id:date:in-reply-to :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0ZlKn2Hgndbawu/M/HUtuyHym9j/CljB0id0CwkGC7g=; b=KCCcPF4F1e7P29GLDuDtYIBfu1BwL5lQzf6yvaD74TyoEhR6r7ZVoTUnSFq8OI+3wd uTUMzOfSp+ElQWuzwSYP7E1qqJpp4SVcZwFQF52igiy2FNY40HlPxgwob1QRr7VtxwKp pR2P38mmQfCVztKKAODn6glLI9dbxRe5/NHrM9eg6ORqcYNwXLf1t5ywZUG/f7y4EzQM EyVGkyfvAapE71A+ttY30419z+QWajQfQs/l9JuVVb44hGDnZqEeUDb3kAaJtymanKOo WV/k6QpTitUortIBcKD0IxCaZAGYJEKoGNAr/m/Bnolov0+JFKQdlUaOcwtikz/eMqFf dUhQ== X-Gm-Message-State: AOJu0Yy9fi/T6HVnQU0qtc5Xc1XrerJzD2KUdtSG7knGeuE6n0FkmKcI 9Qr9f5tIavRjwkqqrCNT12+x1kj4dNHGDkOlrPZDwBm9sLBLyMScnsNcnWkj X-Gm-Gg: ASbGnctFGBwFS9qgKwhxqtGBtwKZvdqQxJ6UkvmZG8IH4rd58WDF03lM/OYeEoLIhvM XCd0M1OXBifWaOUHEykUT2ExCMs2kDmjrg31El5l7hg036dRv1d2MvbOUB6/pVOmoggfg1niDp0 PRXMEYZ50Ufa+kQ1cZYAcqIJr2YKIrMhK0rwG6Cjm//iXm4wlvZsOtAhVuDGWalpkrWsMWU4Wto xmGe2r6OCYxjYYpQyKHvSa8gPV7Re0dgbyh1RGv0wUzeQxoHHMA X-Google-Smtp-Source: AGHT+IEAnORCsJXeqsMmHyGM0zuFpGNXHAUpd8Hk81GhnObYNFTIMtoWC8+1Zhb5m/qHEYeoMelQpQ== X-Received: by 2002:a05:622a:14c:b0:460:aa51:840a with SMTP id d75a77b69052e-46a4a9a2914mr736728261cf.45.1736116267751; Sun, 05 Jan 2025 14:31:07 -0800 (PST) Received: from gnus ([70.26.179.129]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-46a3e67773esm169676501cf.21.2025.01.05.14.31.06 for <72925@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jan 2025 14:31:07 -0800 (PST) From: "Suhail Singh" In-Reply-To: Date: Mon, 7 Oct 2024 23:22:13 -0400 Message-Id: <68d09c78846a198ba4499f89f53e4b3782208c9d.1736116108.git.suhail@bayesians.ca> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/lisp.scm (jpm): Ensure jpm respects JANET_HEADERPATH and JANET_LIBPATH if set by user. Ensure gcc/g++ is able to find header files and compilation-related utilities. Change-Id: Ic7218dbd10e6fabddded50894b82492de8cabc88 --- gnu/packages/lisp.scm | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index f99ad68828..eb3063d3d9 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -30,6 +30,7 @@ ;;; Copyright © 2024 bigbug ;;; Copyright © 2024 Ashish SHUKLA ;;; Copyright © 2024 Omar Bassam +;;; Copyright © 2024 Suhail Singh ;;; Copyright © 2024 David Pflug ;;; Copyright © 2024 Janneke Nieuwenhuizen ;;; @@ -965,22 +966,39 @@ (define-public jpm (setenv "PREFIX" #$output))) (replace 'install - (lambda _ + (lambda* (#:key inputs #:allow-other-keys) (for-each (lambda (dir) (mkdir-p (string-append #$output "/" dir))) '("lib/janet/jpm" "share/man/man1")) (invoke "janet" "bootstrap.janet" "configs/linux_config.janet") - (wrap-program (string-append #$output "/bin/jpm") - `("JANET_HEADERPATH" ":" = - (,(string-append #$janet "/include/janet"))) - `("JANET_LIBPATH" ":" = - (,(string-append #$janet "/lib"))))))))) + (let ((gcc-toolchain (assoc-ref inputs "gcc-toolchain")) + (core-min (assoc-ref inputs "coreutils-minimal"))) + (wrap-program (string-append #$output "/bin/jpm") + `("JANET_HEADERPATH" ":" prefix + (,(string-append #$janet "/include/janet"))) + `("JANET_LIBPATH" ":" prefix + (,(string-append #$janet "/lib"))) + `("C_INCLUDE_PATH" ":" prefix + (,(string-append gcc-toolchain "/include"))) + `("CPLUS_INCLUDE_PATH" ":" prefix + (,(string-append gcc-toolchain "/include/c++") + ,(string-append gcc-toolchain "/include"))) + `("LIBRARY_PATH" ":" prefix + (,(string-append gcc-toolchain "/lib") + ,(string-append gcc-toolchain "/lib64"))) + `("PATH" ":" prefix + (,(string-append gcc-toolchain "/bin") + ,(string-append core-min "/bin")))))))))) (inputs (list bash-minimal coreutils-minimal curl gcc - git-minimal/pinned)) + git-minimal/pinned + ;; Lazily resolve the gcc-toolchain to avoid a circular + ;; dependency. + (module-ref (resolve-interface '(gnu packages commencement)) + 'gcc-toolchain))) (propagated-inputs (list janet)) (native-search-paths (list $SSL_CERT_DIR $SSL_CERT_FILE))