diff options
| author | Tobias Geerinckx-Rice <me@tobias.gr> | 2020-11-23 22:03:27 +0100 |
|---|---|---|
| committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2020-11-23 22:12:19 +0100 |
| commit | d3e6f41ad63e64c0fdfb9c24c2a9d1a2dd49b636 (patch) | |
| tree | 4f7146927a3aa50271a8c343ccb36665bcf7fcff /gnu/packages/javascript.scm | |
| parent | 41c3f10b4c68dc2007b512dfc239bdd76a7838c0 (diff) | |
gnu: mujs: Fetch sources from git.
* gnu/packages/javascript.scm (mujs)[source]: GIT-FETCH the sources
directly from the author.
[arguments]: Add VERSION to #:make-flags.
Diffstat (limited to 'gnu/packages/javascript.scm')
| -rw-r--r-- | gnu/packages/javascript.scm | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm index 669951f7419..48f3e85f77d 100644 --- a/gnu/packages/javascript.scm +++ b/gnu/packages/javascript.scm | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net> | 2 | ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net> |
| 3 | ;;; Copyright © 2017, 2019 Ricardo Wurmus <rekado@elephly.net> | 3 | ;;; Copyright © 2017, 2019 Ricardo Wurmus <rekado@elephly.net> |
| 4 | ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr> | 4 | ;;; Copyright © 2017, 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr> |
| 5 | ;;; Copyright © 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il> | 5 | ;;; Copyright © 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il> |
| 6 | ;;; Copyright © 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr> | 6 | ;;; Copyright © 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr> |
| 7 | ;;; | 7 | ;;; |
| @@ -416,23 +416,27 @@ external server.") | |||
| 416 | (package | 416 | (package |
| 417 | (name "mujs") | 417 | (name "mujs") |
| 418 | (version "1.0.7") | 418 | (version "1.0.7") |
| 419 | (source (origin | 419 | (source |
| 420 | (method url-fetch) | 420 | (origin |
| 421 | (uri (string-append "https://mujs.com/downloads/mujs-" | 421 | (method git-fetch) |
| 422 | version ".tar.xz")) | 422 | (uri (git-reference |
| 423 | (sha256 | 423 | (url "https://github.com/ccxvii/mujs") |
| 424 | (base32 | 424 | (commit version))) |
| 425 | "1ilhay15z4k7mlzs6g2d00snivin7vp72dfw5wwpmc0x70jr31l2")))) | 425 | (file-name (git-file-name name version)) |
| 426 | (sha256 | ||
| 427 | (base32 "08cm3w51xx1bznlglys9wl76vmbdf6jbd3cq504wzrqh10vgdfbv")))) | ||
| 426 | (build-system gnu-build-system) | 428 | (build-system gnu-build-system) |
| 427 | (arguments | 429 | (arguments |
| 428 | '(#:phases | 430 | `(#:phases |
| 429 | (modify-phases %standard-phases | 431 | (modify-phases %standard-phases |
| 430 | (delete 'configure) ; no configure | 432 | (delete 'configure) ; no configure script |
| 431 | (add-after 'install 'install-shared-library | 433 | (add-after 'install 'install-shared-library |
| 432 | (lambda* (#:key (make-flags '()) #:allow-other-keys) | 434 | (lambda* (#:key (make-flags '()) #:allow-other-keys) |
| 433 | (apply invoke "make" "install-shared" make-flags)))) | 435 | (apply invoke "make" "install-shared" make-flags)))) |
| 434 | #:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")) | 436 | #:make-flags |
| 435 | (string-append "CC=gcc")) | 437 | (list ,(string-append "VERSION=" version) |
| 438 | (string-append "CC=gcc") | ||
| 439 | (string-append "prefix=" (assoc-ref %outputs "out"))) | ||
| 436 | #:tests? #f)) ; no tests | 440 | #:tests? #f)) ; no tests |
| 437 | (inputs | 441 | (inputs |
| 438 | `(("readline" ,readline))) | 442 | `(("readline" ,readline))) |
