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")