From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id +KIDEfPP2WZWegEAqHPOHw:P1 (envelope-from ) for ; Thu, 05 Sep 2024 15:36:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id +KIDEfPP2WZWegEAqHPOHw (envelope-from ) for ; Thu, 05 Sep 2024 17:36:19 +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=B9f1hu14; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=iu3JNi6+; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725550579; 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=ndCXZrwtYXRsOD9Cu/F1AzduO91Cd0Jc4en6azZTA5U=; b=AhunCl4zB+qduGrzCAsMtc1hiswvh0mwdw06dp6y5QWQMR0up2nq9nLKYDPe84bbBoVaPq BW7wnNL3/wt9i4IhTTtTkaGOy3BbLszltTzN7EwAa0J0/BbRmVm99ZufGFJia/XAhc7Z3F FENEMBi2d05aYBFU8iTuWGbNVFSBH0m8M6pFIYKJd04e0NPFqAk9fgTAa8YEKrGkjCy0GS IsByIWuNMjWDnMs6Z5y/4Jnog4eRF9GxLxKZSrjmBgpZehHsX91NpDWxkefhWQz06xKPXI wdNbycr8mHHa0dKlaKvPm52HodVfeOej+DiI3RSmOl/nlE+IbGfePRUACgqoWw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725550579; a=rsa-sha256; cv=none; b=u8hSi/Ra6T0h6CJ9KZVmfRfPenRhVS8B90h7uLMFhLeLF0Om7sePSxbjI5Fbnp2Fzs9qWk 393OzMNlRA1mrvEqvzdK6C90l790ZAWBStSH5U3AB8ay4tHe6h2EWw0TUrWSQZ7ieVBsB/ qYDNlHJ606maN2cVOWOd5nFv81iad5PkFHlOrBr+JGaSJkCmZlU5EjIiMGzlCuBWFNDnKB toPccNT0pO9vB0cDnl+QNLWKY3O50clcTYsO0bQs1hfCwYYSPCjz2FrQoUccVwt+fdGN6g 7+YxGAhFkOAUYeVbHp6A27qVVxoqIAZ0feUlbiSgO80b67zBono5PFTcNfJKog== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=B9f1hu14; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=iu3JNi6+; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); 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" 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 E327965DFA for ; Thu, 5 Sep 2024 17:36:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smEWn-00046S-BY; Thu, 05 Sep 2024 11:36:09 -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 1smEWh-00046A-E9 for guix-patches@gnu.org; Thu, 05 Sep 2024 11:36:04 -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 1smEWh-0007p1-58 for guix-patches@gnu.org; Thu, 05 Sep 2024 11:36:03 -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=ndCXZrwtYXRsOD9Cu/F1AzduO91Cd0Jc4en6azZTA5U=; b=B9f1hu14Q0dfKH3LwwxN6m5EFq+cdgj34FhEmdS2mqACPBmJaPOtYsKnyc/aOBvz5jGNoUoJukJi3TtRa8kLsl97XxDoujjeoIJq9Ht5EZPuWPJUyhnoQLl5TkdjGOF6eUd9QCbMznz+KAIsCeLgLZWEPcDlVZd/dGmwK8J9as7OWf3tmk/c72kXAAILEdEQY4TOoFjJEWC/uNBJtwa3+XTMoJX7d9ogo/4iU5ukvwb3SHqXEywDNowvqZEXwc8sQV7rp4ZsMqSFO5Tniv3SO8Rfsr7BFXJXrY8t/WlBCnsmjJnKtuQgdDRKNn1LFjlHeibh9o721MlTIIW2BZb/fg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1smEXe-0002eI-1Y; Thu, 05 Sep 2024 11:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72925] [PATCH] adding 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 Resent-Date: Thu, 05 Sep 2024 15:37: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.172555059910108 (code B ref 72925); Thu, 05 Sep 2024 15:37:02 +0000 Received: (at 72925) by debbugs.gnu.org; 5 Sep 2024 15:36:39 +0000 Received: from localhost ([127.0.0.1]:37889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smEXF-0002cx-Qg for submit@debbugs.gnu.org; Thu, 05 Sep 2024 11:36:38 -0400 Received: from mail-ej1-f53.google.com ([209.85.218.53]:48587) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smDyW-0008IY-57 for 72925@debbugs.gnu.org; Thu, 05 Sep 2024 11:00:45 -0400 Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a86e9db75b9so125257166b.1 for <72925@debbugs.gnu.org>; Thu, 05 Sep 2024 07:59:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725548312; x=1726153112; 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=ndCXZrwtYXRsOD9Cu/F1AzduO91Cd0Jc4en6azZTA5U=; b=iu3JNi6+RCf2T2mRUVXqeHfa0NEQVK20fiherZQFToFHnUyhdstXhLJjHatRf2OUmA MlCKgvLvZnigOH4kWkc17Zf+O1+sZXLHILQzV42OHl1VQG5ONb1hKBDwMTbnteVxuC2t uGWDMF7acOU3QEVZUPCJm7S/UjRWShm70M47aIHGFkC9WiL00RyxK4hoqIFuEri/2zH+ 5N+miv1/fWYpvYQBIsh0CgL269RgQdKaLIvfo1kanqmqL7UDup2DD1NKDv/Mr3ws5GFV sRhK3kFV8PBl7L2hl7Vy5SlEZgkDcS2m89RANuYYV0z3qUkZJSEXHH0ePWRPmVAf+IfK lOUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725548312; x=1726153112; 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=ndCXZrwtYXRsOD9Cu/F1AzduO91Cd0Jc4en6azZTA5U=; b=hbj4steqLVNa9SQvQ6t9lig5JmpBVSg+/ymJwxBZcsIvAuKJAjHqTAs+5ohuiw2nha /FEuSOTmXso1vusfsHHFc9ixzXC5YrIp45RUwArwqosQS4WLoC+ZUFf4rm+EEV4Pz1l4 EJkp3alcQNzO4G5XBNThaxYk80jH3ywe4TB/5R+xKMucvhyl4kI0Sq4HAcn6L5t8CGry jy7pPprLRKnnOiRNgAStskROs7Ix5a3CitW9Fju5oSI8URJhSzb0+srr7mWP3bvUTIjA l3zvHuL00FEb5meTd8j/DrZWUpz9NhE4Oa9UHrg6eYu03F/ces2lRsO3eiSbSwqZRaqL lfjw== X-Gm-Message-State: AOJu0YzxZpi+fiD9ELf3gHf55WTTmRNKyQ/coGo/aIdoZ4UCwSZO/UQd 7sCDWcScJBjnAXCZpvvauLEM64CbSpKMSHBkt1FA4lo77lo2gsgzAEYEOw== X-Google-Smtp-Source: AGHT+IEva2Pji7ER4eeSW/Lcd4uyFkDl9MEQWMRD3X9oF2r5DiIIxHXBU+1oJDBJ0auE34kW7Ll5Ww== X-Received: by 2002:a2e:a596:0:b0:2ef:2c6a:4929 with SMTP id 38308e7fff4ca-2f64440dc3emr90720981fa.13.1725547812361; Thu, 05 Sep 2024 07:50:12 -0700 (PDT) Received: from omar-Latitude-5540.. ([37.63.117.235]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c3cc69a222sm1286588a12.69.2024.09.05.07.50.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 07:50:11 -0700 (PDT) From: Omar Bassam Date: Thu, 5 Sep 2024 17:50:02 +0300 Message-ID: <950a7d3637ddf17be84f52dc2ae0aac2ce4c4be6.1725547778.git.omar.bassam88@gmail.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Thu, 05 Sep 2024 11:36:37 -0400 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-Queue-Id: E327965DFA X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -8.92 X-Spam-Score: -8.92 X-TUID: a8WOAg2/uL7V Change-Id: I730ef2f5c874c5142a580a42af76180e95d93ccd --- gnu/packages/lisp.scm | 52 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index 5d4399f145..96698d375d 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. ;;; @@ -917,6 +918,57 @@ (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.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 (base32 "05rdxigmiy7vf93s16a8n2029lq33073jccz1rjl4iisxj6piw4l")))) + (build-system trivial-build-system) + (arguments + (list + #:modules `((guix build utils)) + #:builder #~(begin + (use-modules (guix build utils)) + (mkdir %output) + (for-each (lambda (dir) (mkdir (string-append %output "/" dir))) + '("bin" "lib" "share" "share/man" "lib/janet" + "lib/janet/jpm" "share/man/man1")) + (copy-recursively (assoc-ref %build-inputs "source") "source") + (chdir "source") + (substitute* "configs/linux_config.janet" + (("auto-shebang true") "auto-shebang false")) + (substitute* "configs/linux_config.janet" + (("/usr/local") %output)) + (substitute* "jpm/shutil.janet" + (("cp") (string-append #$coreutils "/bin/cp"))) + (substitute* "jpm/declare.janet" + (("chmod") (string-append #$coreutils "/bin/chmod"))) + (setenv "PREFIX" %output) + (setenv "JANET_PREFIX" %output) + (setenv "JANET_LIBPATH" (string-append %output "/lib/janet")) + (setenv "JANET_MODPATH" (string-append %output "/lib/janet")) + (system* (string-append #$janet "/bin/janet") + "bootstrap.janet" "configs/linux_config.janet") + (substitute* (string-append %output "/bin/jpm") + (("/usr/bin/env janet") + (string-append #$janet "/bin/janet"))) + (copy-recursively (string-append #$janet "/include/janet") + (string-append %output "/include/janet")) + (copy-recursively (string-append #$janet "/lib") + (string-append %output "/lib"))))) + (inputs (list janet coreutils)) + (home-page "https://janet-lang.org/") + (synopsis "Janet Project Manager for the Janet programming language") + (description "JPM is the Janet Project Manager tool. It is for automating +builds and downloading dependencies of Janet projects.") + (license license:expat))) + (define-public lisp-repl-core-dumper (package (name "lisp-repl-core-dumper") base-commit: e05f0e9832326703fa90a02559f1a4b44e4401ad -- 2.45.2