summary refs log tree commit diff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2020-09-02 11:54:00 +0300
committerEfraim Flashner <efraim@flashner.co.il>2020-09-02 11:54:00 +0300
commitd8c71fd91f93e95dc61f36095620f3ec83362ab0 (patch)
tree19d22f1d85d2c046f575c1e54d0410800f5398c5
parentefaeb84c194dd3537e867a3c3c6d46b75858a2cf (diff)
downloadguix-d8c71fd91f93e95dc61f36095620f3ec83362ab0.tar.gz
gnu: js-filesaver: Also install unminified version.
* gnu/packages/javascript.scm (js-filesaver)[arguments]: Add phase to
install unminified javascript file.
-rw-r--r--gnu/packages/javascript.scm6
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/")