mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: cuirass: Install minified JavaScript files.
Works around guix/cuirass#34. * gnu/packages/ci.scm (cuirass)[arguments]: Add ‘install-minified-javascript’ phase. Change-Id: I2139430812d05a0ce70d6a1973bb951bd2f59ff9
This commit is contained in:
parent
20529b72e2
commit
b8f528e733
1 changed files with 14 additions and 0 deletions
|
@ -101,6 +101,20 @@
|
|||
#:parallel-tests? #f
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'build 'install-minified-javascript
|
||||
(lambda _
|
||||
;; Work around guix/cuirass#34. Remove when 1.3.1 is out.
|
||||
(define files
|
||||
'("src/static/js/choices.min.js"
|
||||
"src/static/js/d3.v6.min.js"
|
||||
"src/static/js/list.min.js"))
|
||||
(apply invoke "make" files)
|
||||
(for-each (lambda (file)
|
||||
(install-file
|
||||
file
|
||||
(in-vicinity #$output
|
||||
"share/cuirass/static/js")))
|
||||
files)))
|
||||
(add-after 'install 'wrap-program
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
;; Wrap the 'cuirass' command to refer to the right modules.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue