all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 4a1a57b1fdc3c646801ee775d1e5ba81f861c27e 1811 bytes (raw)
name: yarn.scm 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
 
(define-module (yarn)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system trivial)
  #:use-module (guix licenses)
  #:use-module (gnu packages node)
  #:use-module (ice-9 pretty-print))

(define yarn-version "1.22.4")

(define-public yarn
  (package
   (name "yarn")
   (version yarn-version)
   (source (origin
    (method url-fetch/tarbomb)
    (uri (string-append "https://github.com/yarnpkg/yarn/releases/download/v"
     version "/yarn-v" version ".tar.gz"))
    (sha256
     (base32
      "0n7vhwjz3lyjnavcaw08cqa8gfampqsy5mm3f555cbqb26m1clxw"))))
   (build-system trivial-build-system)
   (outputs '("out"))
   (inputs `(("node" ,node)))
   (arguments
    `(#:modules ((guix build utils))
      #:builder (begin
  (use-modules (guix build utils))
                  (let* ((out (assoc-ref %outputs "out"))
   (bin (string-append  out "/bin"))
   (lib (string-append  out "/lib"))
                         (node-modules (string-append lib "/node_modules"))
                         (yarn (string-append node-modules "/yarn"))
                         (input-dir (string-append
     (assoc-ref %build-inputs "source") "/yarn-v" ,version)))
    (mkdir-p yarn)
    (mkdir-p bin)
    (copy-recursively (string-append input-dir "/") yarn)
    (symlink (string-append yarn "/bin/yarn") (string-append bin "/yarn"))
    (symlink (string-append yarn "/bin/yarnpkg") (string-append bin "/yarnpkg"))
    (delete-file (string-append yarn "/bin/yarn.cmd"))
    (delete-file (string-append yarn "/bin/yarnpkg.cmd"))))))
   (home-page "https://yarnpkg.com/")
   (synopsis "Dependency management tool for JavaScript")
   (description "Fast, reliable, and secure dependency management tool
for JavaScript.  Acts as a drop-in replacement for NodeJS's npm.")
   (license bsd-2)))

debug log:

solving 4a1a57b ...
found 4a1a57b in https://yhetil.org/guix/1ba1944d95080f01f02a11c2484e7cb9fa75f538.camel@runbox.com/

applying [1/1] https://yhetil.org/guix/1ba1944d95080f01f02a11c2484e7cb9fa75f538.camel@runbox.com/
diff --git a/yarn.scm b/yarn.scm
new file mode 100644
index 0000000..4a1a57b

Checking patch yarn.scm...
Applied patch yarn.scm cleanly.

index at:
100644 4a1a57b1fdc3c646801ee775d1e5ba81f861c27e	yarn.scm

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.