mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 14:28:15 -05:00
gnu: js-filesaver: Also install unminified version.
* gnu/packages/javascript.scm (js-filesaver)[arguments]: Add phase to install unminified javascript file.
This commit is contained in:
parent
efaeb84c19
commit
d8c71fd91f
1 changed files with 6 additions and 0 deletions
|
@ -393,6 +393,12 @@ (define-public js-filesaver
|
|||
(lambda _
|
||||
(substitute* "src/FileSaver.js"
|
||||
(("export ") ""))
|
||||
#t))
|
||||
(add-after 'install 'install-unminified-version
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(install-file "src/FileSaver.js"
|
||||
(string-append (assoc-ref outputs "out")
|
||||
"/share/javascript"))
|
||||
#t)))))
|
||||
(home-page
|
||||
"https://eligrey.com/blog/saving-generated-files-on-the-client-side/")
|
||||
|
|
Loading…
Reference in a new issue