diff options
author | Charles <charles.b.jackson@protonmail.com> | 2021-07-12 22:50:44 -0500 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2021-07-19 14:46:28 +0300 |
commit | 385c485c651c0b1a467bdbbf31fa723dc4cabd9e (patch) | |
tree | b78f69010f7aa317f73d9794f53497200d85e4a5 | |
parent | d16148fcfdf196117f27933a30e3398aa9290624 (diff) | |
download | guix-385c485c651c0b1a467bdbbf31fa723dc4cabd9e.tar.gz |
build: Update uglifyjs for minify-build-system.
* guix/build-system/minify.scm (default-uglify-js): Update uglifyjs package used. * guix/build/minify-build-system.scm (minify): Use updated uglifyjs command name. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
-rw-r--r-- | guix/build-system/minify.scm | 4 | ||||
-rw-r--r-- | guix/build/minify-build-system.scm | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/guix/build-system/minify.scm b/guix/build-system/minify.scm index 28a6781c06..9d53760685 100644 --- a/guix/build-system/minify.scm +++ b/guix/build-system/minify.scm @@ -44,8 +44,8 @@ (define (default-uglify-js) "Return the default package to minify JavaScript source files." ;; Lazily resolve the binding to avoid a circular dependency. - (let ((mod (resolve-interface '(gnu packages lisp-xyz)))) - (module-ref mod 'uglify-js))) + (let ((mod (resolve-interface '(gnu packages uglifyjs)))) + (module-ref mod 'uglifyjs))) (define* (lower name #:key source inputs native-inputs outputs system diff --git a/guix/build/minify-build-system.scm b/guix/build/minify-build-system.scm index 92158a033f..c5a876726f 100644 --- a/guix/build/minify-build-system.scm +++ b/guix/build/minify-build-system.scm @@ -39,7 +39,7 @@ (format #t "minifying ~a\n" file) (let* ((base (basename file ".js")) (installed (or target (string-append directory base ".min.js"))) - (minified (open-pipe* OPEN_READ "uglify-js" file))) + (minified (open-pipe* OPEN_READ "uglifyjs" file))) (call-with-output-file installed (cut dump-port minified <>)) #t)) |