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:
Efraim Flashner 2020-09-02 11:54:00 +03:00
parent efaeb84c19
commit d8c71fd91f
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -393,6 +393,12 @@ (define-public js-filesaver
(lambda _ (lambda _
(substitute* "src/FileSaver.js" (substitute* "src/FileSaver.js"
(("export ") "")) (("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))))) #t)))))
(home-page (home-page
"https://eligrey.com/blog/saving-generated-files-on-the-client-side/") "https://eligrey.com/blog/saving-generated-files-on-the-client-side/")