summaryrefslogtreecommitdiff
path: root/px/packages/node.scm
diff options
context:
space:
mode:
authorFranz Geffke <franz@pantherx.org>2023-11-06 20:08:14 +0000
committerFranz Geffke <franz@pantherx.org>2023-11-06 20:08:14 +0000
commit47b4c9c854915df93893dbaa993accfacf9027fe (patch)
tree4f9b1742d63fcfbc94cc6b8d84f76c4d00c3a0b7 /px/packages/node.scm
parent0b426d7b7ed8e176bf464ef9e0683f74a6c9d20f (diff)
rewrite: apply guix-reference formatting; cleanup some module imports
Diffstat (limited to 'px/packages/node.scm')
-rw-r--r--px/packages/node.scm62
1 files changed, 30 insertions, 32 deletions
diff --git a/px/packages/node.scm b/px/packages/node.scm
index 1028a5c..a69d5b8 100644
--- a/px/packages/node.scm
+++ b/px/packages/node.scm
@@ -1,5 +1,6 @@
(define-module (px packages node)
- #:use-module ((guix licenses) #:prefix license:)
+ #:use-module ((guix licenses)
+ #:prefix license:)
#:use-module (ice-9 match)
#:use-module (guix download)
#:use-module (guix build-system trivial)
@@ -10,29 +11,27 @@
(name "pnpm")
(version "8.4.0")
(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
- "0r7x1zamcznv3d4s0y410xg99qa3j8fh3gygqp5gaiikhwfln7kh"))))
+ (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 "0r7x1zamcznv3d4s0y410xg99qa3j8fh3gygqp5gaiikhwfln7kh"))))
(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)))))
+ #: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
@@ -45,14 +44,13 @@ store all files from all module directories on a disk")
(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")))))) \ No newline at end of file
+ (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"))))))