From d8c71fd91f93e95dc61f36095620f3ec83362ab0 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 2 Sep 2020 11:54:00 +0300 Subject: [PATCH] gnu: js-filesaver: Also install unminified version. * gnu/packages/javascript.scm (js-filesaver)[arguments]: Add phase to install unminified javascript file. --- gnu/packages/javascript.scm | 6 ++++++ 1 file changed, 6 insertions(+) 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 @@ (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/")