From patchwork Thu Sep 5 14:50:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Omar Bassam X-Patchwork-Id: 67637 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 6F8AE27BBEA; Thu, 5 Sep 2024 16:36:20 +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_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 B51CC27BBE2 for ; Thu, 5 Sep 2024 16:36:18 +0100 (BST) 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 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Change-Id: I730ef2f5c874c5142a580a42af76180e95d93ccd --- gnu/packages/lisp.scm | 52 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) base-commit: e05f0e9832326703fa90a02559f1a4b44e4401ad 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")