[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: js-filesaver: Also install unminified versio
From: |
guix-commits |
Subject: |
branch master updated: gnu: js-filesaver: Also install unminified version. |
Date: |
Wed, 02 Sep 2020 05:08:19 -0400 |
This is an automated email from the git hooks/post-receive script.
efraim pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new d8c71fd gnu: js-filesaver: Also install unminified version.
d8c71fd is described below
commit d8c71fd91f93e95dc61f36095620f3ec83362ab0
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Sep 2 11:54:00 2020 +0300
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 d5ff5bf..fbc7388 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/")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: js-filesaver: Also install unminified version.,
guix-commits <=