From patchwork Mon Oct 7 21:08:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Omar Bassam X-Patchwork-Id: 68770 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 E761A27BBEA; Mon, 7 Oct 2024 22:10:22 +0100 (BST) 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 3F3AE27BBE2 for ; Mon, 7 Oct 2024 22:10:22 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sxuzQ-000353-6Q; Mon, 07 Oct 2024 17:10:00 -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 1sxuzP-00034H-1v for guix-patches@gnu.org; Mon, 07 Oct 2024 17:09: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 1sxuzO-0008Ri-Pm for guix-patches@gnu.org; Mon, 07 Oct 2024 17:09: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=uKb+d32OYQ3jyheG44SBikTiazh7IaELvxCkm/DqjpY=; b=XecNGHMt9byKlLCYtXUda3OuawKFt1RHgNXSqYOPwTcFtgm+UwiUwkRpHDLnylsGgWk7VKW0wdFfiy4P7tQZs0SgE8Z3ZDiq3/y2o+z+vdBmZsnlyJYQQbJBqvJqPTchIlAtx+5wk5qfsBzvht0DMGFEfqUZX9IXbqXSknnHZavt9chGTBw+yrZiQamyZpwScFetlc3dli6Ldw7kHs8y8q6FovsRDMN1sHwYZITH/a1xhPf+TKWqQMo6ql/JMW3rMMoAydpAtQIUQ0NMbYLWnIDaSklKP0GTwP6BQj7zwVTHVu2lmWnAfTpapztnifXrYfRmSiH0MuZ9WWA6Ga8xZw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sxuzR-0004UF-SR; Mon, 07 Oct 2024 17:10:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72925] [PATCH v11] gnu: Add jpm package. References: In-Reply-To: Resent-From: Omar Bassam 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, "Suhail Singh" Resent-Date: Mon, 07 Oct 2024 21:10:01 +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.172833539617227 (code B ref 72925); Mon, 07 Oct 2024 21:10:01 +0000 Received: (at 72925) by debbugs.gnu.org; 7 Oct 2024 21:09:56 +0000 Received: from localhost ([127.0.0.1]:48551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxuzL-0004Tm-O8 for submit@debbugs.gnu.org; Mon, 07 Oct 2024 17:09:56 -0400 Received: from mail-ej1-f53.google.com ([209.85.218.53]:43206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxuzJ-0004Tc-1f for 72925@debbugs.gnu.org; Mon, 07 Oct 2024 17:09:54 -0400 Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a99415adecaso370600366b.0 for <72925@debbugs.gnu.org>; Mon, 07 Oct 2024 14:09:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728335324; x=1728940124; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=uKb+d32OYQ3jyheG44SBikTiazh7IaELvxCkm/DqjpY=; b=EN8ehI/o/f879+hFi+YSc+NzIlASnJ3GPePSbzzQbebIeyScN1BtT8NRigeEsBOqOH 4BHH13BOVGonAZKCe+MhsBklTFo3QCYlGeHis/c9/OaojiuUzmnR/KMyDkCnqII3h+hH 7rFdXZg9SfA4Y5oHKe4ejn0bjkpYd1k78dF4T2auKcdubxvbsYqAtzg12saRdK8BHArz T5N3qDVrDPkbNaeSkByXXkgDTLu8+UpaUxP+P5fJ4rcr8lplMJZobxQDCFwT2QKhczpa 60a/fgQLE37QWusgPbGPoUIWB3C9EYsTkv1ke1tP4IYKqQ4acCsLz3TcbRYDIETKO4Bi yngQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728335324; x=1728940124; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uKb+d32OYQ3jyheG44SBikTiazh7IaELvxCkm/DqjpY=; b=C4pFMgcAmhuR+LEuq2gJycJI0U+Hn4zEhwnsqvT1MsGNq8yrWsklULwYOxDMiC+2sR Fko5ZiLthhNkdzCjc5r/zuE4ZsAGlhJQzKzZMHwE3geh3hRAcOiMZbnsRwbidFdAZGLa Dbad3xnzTTqE9t2HtRJNBzW1QMqRVaZ3p3fLZjRh1Jf3RirZQwogE8es7zMpZiIULtk1 4x7jq5QueTDnvacegzNMv2Rsyp1g3QETeiusUjuBJvEolgcimeH2aWwGn6w1v2eSBsAA PSZBMwuJoicHB7OIBMZ5dytfb2QyBI298FSTe6kBe/QfSwWD40zYsC9PSKOrMD55QRWl r26Q== X-Gm-Message-State: AOJu0YySOxshmuY5rKk5+sXa1fXx5l7tcoIqZjdjiXrEn1eQ44+VLBPr YwtI9HtfGKcSv5v2gZvmCVHhHntEC8Hc7+g6PeIMRf2MzXHM3lcqKwUMxtgk X-Google-Smtp-Source: AGHT+IHO4Tf6Nyob7EJtrQnjaJ4SXu+lBrMwLS962wAjDkIgg/yO7/ou2bgVGfqJ2XTjt9qWIw9vcw== X-Received: by 2002:a17:907:7d8a:b0:a8d:3fb6:33df with SMTP id a640c23a62f3a-a99678aeeeemr105861866b.8.1728335323487; Mon, 07 Oct 2024 14:08:43 -0700 (PDT) Received: from omar-Latitude-5540.. ([46.232.152.32]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a995350d522sm191822866b.32.2024.10.07.14.08.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2024 14:08:42 -0700 (PDT) From: Omar Bassam Date: Tue, 8 Oct 2024 00:08:37 +0300 Message-ID: <453b1ca8f09ec70707b71557d75dd46ca2299784.1728335255.git.omar.bassam88@gmail.com> X-Mailer: git-send-email 2.45.2 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 --- gnu/packages/lisp.scm | 65 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) base-commit: a873666d3bf716a5ae29275efaa000eaf6d1e2a8 diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index 6c16d8ab71..04b56ea99b 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 ;;; ;;; 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) @@ -917,6 +919,69 @@ (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 "\"" + #$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 "/" 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)) + (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")