From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id MPcHF3lT2Ga7KgEAqHPOHw:P1 (envelope-from ) for ; Wed, 04 Sep 2024 12:32:57 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id MPcHF3lT2Ga7KgEAqHPOHw (envelope-from ) for ; Wed, 04 Sep 2024 14:32:57 +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=YstyiV7o; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=JibQu3B5; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725453177; 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=4CpTe0KjnjJ+SP/x5YqX4PcLT2PyXJawNcruYEzrFbA=; b=HrCtupVvV+BxLQ7bK70VP+hFMZ+LRGeO4eeWWkRqPJcx8s2uqm72SrsYe3AYUWWuO50lJx qJSDh+Orprrjh6hrRvO+tTpJY9/47dGTECSRwzyZOHp/TZeQATdV60xiUPZGGyp4GAAirU rXBi8VE+sRkEsEF1ps7gXVax8slxNxhDJrr6abRA3tvPj3vO32Qujb+MaGOHdrSxnUWKFS DzTY5fvBvj9+Fs0oUz6sUL/g5FWtD3TLg431r+T1P4JkJFS42xaddpFQIQ7wILzAFb8cPW ZUK2TW1rDmB23eItUnkvXJn08AMPcMS+T1vnDHEU5uVf/kIN1ZIdPHNXnIh4ZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=YstyiV7o; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=JibQu3B5; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725453177; a=rsa-sha256; cv=none; b=ovgeny47+0vOK3JXCSFuWZ9/2Y2FBJOWaRbnkil/52qcByCc9eDCI9wFzjLudgLR+AIbSj MzYDMX/4ErkRGV7vFtHgdRkYk5/MaBSuHNviHE4gSLQPAvDuZJeFip5E+DIlaDHY8Q69/Z AuU/sXMCRgSptvmo0jBIPSsJhVyol5Nfxnyy9QntKB0YL7GAbFXjoUiY3O46e6SwRhlc1M dedr0b1xkN4FLxBAYXKeASPi2ZV1doxQ2kU7SQec3IMLcfQ6w8C9f+vQ0hYr0sJWAuRjaC v9kwTlJjPrd83PZ33DnJS/4TAYRsTMHWuUcYzLsnFZorkW/hSE/zCOYsNfSROQ== 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 15A191681B for ; Wed, 4 Sep 2024 14:32:57 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slpBE-0006mF-TI; Wed, 04 Sep 2024 08:32:12 -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 1slpB6-0006bH-Lr for guix-patches@gnu.org; Wed, 04 Sep 2024 08:32:06 -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 1slpB1-0007fV-OT for guix-patches@gnu.org; Wed, 04 Sep 2024 08:32: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=4CpTe0KjnjJ+SP/x5YqX4PcLT2PyXJawNcruYEzrFbA=; b=YstyiV7oTwQcaR76SO4bbFYoY2uL+yktpao+yKJzDn9Gh2JTafSRZhWYQ1bPMQRySmSsai6e0F/DuCmDsWvDJM1YbmsDK+g9qt+iYKayEEMF8434atzifkZJ2BDPyz9r1oJYj0CI9maEjPKiYyDx5TNK8ZT/FquBMXq6FZV+UlRpr5b9jxpqlyfxdxyKsLmWM0Hpjk5ACAqwbV/ketXACnGxOoabbbmV3GED4xyFtC1JRCrimDEiLhODnfelemXdsjHq6nvV1bTCdzX1zo3i9Kz32cg/g1csmeWdwtwDqY5njitds5tzDpEzCUreSoD5M9/gihSCUPY46xOe6b8F8A==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1slpC2-0008Gq-EW; Wed, 04 Sep 2024 08:33: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: Wed, 04 Sep 2024 12:33: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.172545317131760 (code B ref 72925); Wed, 04 Sep 2024 12:33:02 +0000 Received: (at 72925) by debbugs.gnu.org; 4 Sep 2024 12:32:51 +0000 Received: from localhost ([127.0.0.1]:33800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slpBq-0008G5-O8 for submit@debbugs.gnu.org; Wed, 04 Sep 2024 08:32:51 -0400 Received: from mail-ej1-f49.google.com ([209.85.218.49]:60619) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sllJv-0001JN-RA for 72925@debbugs.gnu.org; Wed, 04 Sep 2024 04:24:57 -0400 Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a89c8db505bso435067266b.0 for <72925@debbugs.gnu.org>; Wed, 04 Sep 2024 01:23:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725438166; x=1726042966; 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=4CpTe0KjnjJ+SP/x5YqX4PcLT2PyXJawNcruYEzrFbA=; b=JibQu3B5jCVfbtqj27n2FvyDyIrH3c4LwM/zFhKY0OPk688g+Xsxy2lbm++9Uwzta7 XE8Egy2YOikQwHjWit+/GwCuinej9slLsFaUX+pVsZ3sLdhZuVo/L2VgheYYa3KK0xHR AIJb0+jHycUFogQ/IP+2iNork/aEsiB/rDgDwq31VBNu42HYLi2guZodTDBxCpltfi5G siBlxQCCbkv/ocTsHwdl1DC0hlrbALKp3f5J0Rqf9VCu9M1Sy7uHn/nHsLur+r03OpVg kAb8AOW8VTd8VEcDH3lO/WX+iBtRW7TMggYu+PFbb+i8xTxslQQShQzrg10FDF4dix14 youA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725438166; x=1726042966; 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=4CpTe0KjnjJ+SP/x5YqX4PcLT2PyXJawNcruYEzrFbA=; b=hxXKs8wYlaW8KscAfY3KVB98XnNKLPAtZz6iM5YieXcS9LgBI5pCq0EgIqDgLZ/ZRV 6jZbc6hK99xe2cTDvQhkYKOu1mPDVyahk5MMhcOVrOlDV1Suk+b09bSsiERGF/81AG47 HN/o6q0gfDPMr/FRgVXc7fanCkU/iO+Sdd4h5teYtjB0tYWz0LOTYXp1/kxLhnIBxgOV kA4t5GOmGHyEC3G3R8VFGL8iyiKs8rv10lAFXM6kTTEaVIM9HsnHOw17lm/GdjPtHQA/ kByG27ALIdPvNic+SPXWsVSYDBDyDmbCU4BTPlofwayUnc36+soy+J+2OdRwwnHz5ZKr ulSA== X-Gm-Message-State: AOJu0YxnOM1HfT8FaQoGQ29gU9VM6glzCNGqwStjIEKVd1lIpixxeJN5 kFEvuy4vSVhGPqCbMunG8TIrwxelwEv1jE7n2Ids0jfHUF0HuLSg629DRg== X-Google-Smtp-Source: AGHT+IEIgfZOua0GzoJ/3Y4XN+1tdfgHr4w3rHx8+t5mYtxAydmjwSkGX0DBimo4emuEvDSCIwVe6A== X-Received: by 2002:a17:907:97d6:b0:a86:7e2d:f10b with SMTP id a640c23a62f3a-a8a32eda45dmr250924466b.37.1725438165495; Wed, 04 Sep 2024 01:22:45 -0700 (PDT) Received: from omar-Latitude-5540.musala.com ([193.17.229.5]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a89891a3d60sm777781166b.123.2024.09.04.01.22.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2024 01:22:44 -0700 (PDT) From: Omar Bassam Date: Wed, 4 Sep 2024 11:22:37 +0300 Message-ID: <14fd8cafaebc27a00a4b198abe8e3759583c56b5.1725179146.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: Wed, 04 Sep 2024 08:32:47 -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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 15A191681B X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -8.92 X-Spam-Score: -8.92 X-TUID: r+tqnABdEWq3 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..4d4748dcb4 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