diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2020-09-02 11:54:00 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2020-09-02 11:54:00 +0300 |
commit | d8c71fd91f93e95dc61f36095620f3ec83362ab0 (patch) | |
tree | 19d22f1d85d2c046f575c1e54d0410800f5398c5 /gnu/packages/javascript.scm | |
parent | efaeb84c194dd3537e867a3c3c6d46b75858a2cf (diff) | |
download | guix-d8c71fd91f93e95dc61f36095620f3ec83362ab0.tar.gz |
gnu: js-filesaver: Also install unminified version.
* gnu/packages/javascript.scm (js-filesaver)[arguments]: Add phase to install unminified javascript file.
Diffstat (limited to 'gnu/packages/javascript.scm')
-rw-r--r-- | gnu/packages/javascript.scm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm index d5ff5bffee..fbc7388f3d 100644 --- a/gnu/packages/javascript.scm +++ b/gnu/packages/javascript.scm @@ -393,6 +393,12 @@ means that these shams cause many ES5 methods to silently fail.") (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/") |