From patchwork Fri May 5 14:03:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Franz Geffke X-Patchwork-Id: 12819 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 9DCBA27BBEA; Fri, 5 May 2023 15:04:24 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 6C12C27BBE2 for ; Fri, 5 May 2023 15:04:23 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puw2g-0002Kn-KR; Fri, 05 May 2023 10:04:15 -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 1puw2Y-0002Ji-L9 for guix-patches@gnu.org; Fri, 05 May 2023 10:04:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1puw2U-0006Zf-Sg for guix-patches@gnu.org; Fri, 05 May 2023 10:04:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1puw2U-0007cR-JR for guix-patches@gnu.org; Fri, 05 May 2023 10:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63307] [PATCH] gnu: Add pnpm Resent-From: Franz Geffke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 May 2023 14:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63307 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63307@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168329542229254 (code B ref -1); Fri, 05 May 2023 14:04:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 May 2023 14:03:42 +0000 Received: from localhost ([127.0.0.1]:57163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puw27-0007bh-1D for submit@debbugs.gnu.org; Fri, 05 May 2023 10:03:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:35506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puw25-0007bZ-49 for submit@debbugs.gnu.org; Fri, 05 May 2023 10:03:38 -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 1puw1w-0002EY-1M for guix-patches@gnu.org; Fri, 05 May 2023 10:03:31 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1puw1u-0006W6-0S for guix-patches@gnu.org; Fri, 05 May 2023 10:03:27 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 3DFC45C005B for ; Fri, 5 May 2023 10:03:25 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 05 May 2023 10:03:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantherx.org; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to; s=fm1; t=1683295405; x=1683381805; bh=MQ sZ+uJvaBu2pWZIezkHImzcb+SexypaeMIe0wkl/ZQ=; b=WtBJwcM6SgjLemBLHo AxNOZMB77Nbg7yrGYG9x2/NGxnHA3GFtQYnuLUSBZWAESh7E+1EwJXYIzU2RjZ9T CCykJ58VctV+7KuTA0585iukJJJEARLP5+27SUs5Pfgh+e4qEKNrElKR4fdUVXyD u4IK+rR1qqjimAvYZge6CqWkMA4ktb48a8mtSlP/4XwgQ4UiRharvMnxGgWq9+Zz nOEKkA7F/N4PlIcHZcuIg9CuEm8dROjDIFwp0stQ3t2ssuwZPZv7+ahk66YCYx3d 14/KTdKRsAAiUajncbHyggaSotEgXbR3hy2DTThF7JOlo33t3w8JrtMAAyO4jmwu vlnA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1683295405; x=1683381805; bh=MQsZ+uJvaBu2p WZIezkHImzcb+SexypaeMIe0wkl/ZQ=; b=UfebYxpOarkJRYbs6v1frsz9diTBn V9lIgnkwkjkW/WhSb6fu5shuYHtoOzGVD7rIuAY0b8gi2jeVrxEaxUa8qFp/2zFD 7spX6ttVPWi3A1NpP8O7JmSnvarwAuDhc5i/QWBW8HLhhkhr8oiEO+vOaNoIk0OS geasHWuf61KsSwnRGn5Ftr+cRyg9KFUKsAnn/r2hRKqcl+LXV1HAoDtVdVnkdw91 u7xiTrtv3TK0EpVP7poaNOjQ+Cy5RPi4kun6VgAzmKnAw6C4mDeEIwHOdS2hlvMY Abpurb58geJ/BmnRvBRLELLN33qWPe5DYHCLM7z0DvnDAoMiiDjzjwMmw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeefvddgjedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfvhffutgfgsehtjeertd dtfeejnecuhfhrohhmpefhrhgrnhiiucfivghffhhkvgcuoehfrhgrnhiisehprghnthhh vghrgidrohhrgheqnecuggftrfgrthhtvghrnhephfejtefgteefuddtjeejheetudffvd etheefteevkefgheefieefvdehtdfhteffnecuffhomhgrihhnpehgihhthhhusgdrtgho mhdpphhnphhmrdhiohenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehfrhgrnhiisehprghnthhhvghrgidrohhrgh X-ME-Proxy: Feedback-ID: i477944df:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 5 May 2023 10:03:24 -0400 (EDT) Message-ID: <8fce37f3-cb14-d7f9-d728-b1415fa4d82f@pantherx.org> Date: Fri, 5 May 2023 15:03:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Content-Language: en-US From: Franz Geffke Received-SPF: pass client-ip=66.111.4.25; envelope-from=franz@pantherx.org; helo=out1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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 diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 991113c05b..b32e68b415 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -29,7 +29,9 @@ (define-module (gnu packages node-xyz) #:use-module (guix gexp) #:use-module (guix packages) #:use-module (guix git-download) - #:use-module (guix build-system node)) + #:use-module (guix build-system node) + #:use-module (guix build-system trivial) + #:use-module (ice-9 match)) (define-public node-acorn (package @@ -1546,3 +1548,37 @@ (define-public node-yazl @item Prefer to open input files one at a time than all at once. @end enumerate") (license license:expat))) + +(define-public pnpm + (package + (name "pnpm") + (version "7.32.2") + (source + (origin + (method url-fetch) + (uri (string-append + "https://github.com/pnpm/pnpm/releases/download/v" + version "/pnpm-linuxstatic-" + (match (or (%current-system) (%current-target-system)) + ("x86_64-linux" "x64") + ("aarch64-linux" "arm64")))) + (sha256 + (base32 + "1k3n24ink74ajs8nd0p6y6238vi41n5bvrk8clnydgwg11ax1zx0")))) + (build-system trivial-build-system) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules ((guix build utils))) + (let* ((source (assoc-ref %build-inputs "source")) + (bin (string-append %output "/bin")) + (exe (string-append bin "/pnpm"))) + (mkdir-p bin) + (copy-file source exe) + (chmod exe #o755))))) + (home-page "https://pnpm.io") + (synopsis "Fast, disk space efficient package manager for nodejs") + (description "pnpm uses a content-addressable filesystem to +store all files from all module directories on a disk") + (license license:expat)))