diff options
| author | Tobias Geerinckx-Rice <me@tobias.gr> | 2019-12-05 15:32:37 +0100 |
|---|---|---|
| committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2019-12-05 15:38:52 +0100 |
| commit | d9544d91a6421da9e4d428536c6138bc5b01e1d3 (patch) | |
| tree | 947779d9a4b00c135528632662424735bc33baf4 /gnu/packages/javascript.scm | |
| parent | b665a246194be0205f07ae03696e2c378a1bfd0d (diff) | |
Revert "gnu: Properly move lisp libraries to lisp-xyz, uglify-js to javascript and stumpwm to wm."
This reverts commit ac1ee30f4f7f9d0ae2a655676b0e8b9eb90a35dd, which
still breaks ‘guix pull’.
Diffstat (limited to 'gnu/packages/javascript.scm')
| -rw-r--r-- | gnu/packages/javascript.scm | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm index 6718274da24..0e33f889b8b 100644 --- a/gnu/packages/javascript.scm +++ b/gnu/packages/javascript.scm | |||
| @@ -26,7 +26,6 @@ | |||
| 26 | #:use-module (gnu packages base) | 26 | #:use-module (gnu packages base) |
| 27 | #:use-module (gnu packages compression) | 27 | #:use-module (gnu packages compression) |
| 28 | #:use-module (gnu packages lisp) | 28 | #:use-module (gnu packages lisp) |
| 29 | #:use-module (gnu packages lisp-xyz) | ||
| 30 | #:use-module (gnu packages readline) | 29 | #:use-module (gnu packages readline) |
| 31 | #:use-module (guix packages) | 30 | #:use-module (guix packages) |
| 32 | #:use-module (guix download) | 31 | #:use-module (guix download) |
| @@ -453,50 +452,3 @@ to use, and is very similar to Lua. There is no need to interact with byzantine | |||
| 453 | C++ template mechanisms, or worry about marking and unmarking garbage collection | 452 | C++ template mechanisms, or worry about marking and unmarking garbage collection |
| 454 | roots, or wrestle with obscure build systems.") | 453 | roots, or wrestle with obscure build systems.") |
| 455 | (license license:isc))) | 454 | (license license:isc))) |
| 456 | |||
| 457 | (define-public uglify-js | ||
| 458 | (package | ||
| 459 | (inherit sbcl-cl-uglify-js) | ||
| 460 | (name "uglify-js") | ||
| 461 | (build-system trivial-build-system) | ||
| 462 | (arguments | ||
| 463 | `(#:modules ((guix build utils)) | ||
| 464 | #:builder | ||
| 465 | (let* ((bin (string-append (assoc-ref %outputs "out") "/bin/")) | ||
| 466 | (script (string-append bin "uglify-js"))) | ||
| 467 | (use-modules (guix build utils)) | ||
| 468 | (mkdir-p bin) | ||
| 469 | (with-output-to-file script | ||
| 470 | (lambda _ | ||
| 471 | (format #t "#!~a/bin/sbcl --script | ||
| 472 | (require :asdf) | ||
| 473 | (push (truename \"~a/lib/sbcl\") asdf:*central-registry*)" | ||
| 474 | (assoc-ref %build-inputs "sbcl") | ||
| 475 | (assoc-ref %build-inputs "sbcl-cl-uglify-js")) | ||
| 476 | ;; FIXME: cannot use progn here because otherwise it fails to | ||
| 477 | ;; find cl-uglify-js. | ||
| 478 | (for-each | ||
| 479 | write | ||
| 480 | '(;; Quiet, please! | ||
| 481 | (let ((*standard-output* (make-broadcast-stream)) | ||
| 482 | (*error-output* (make-broadcast-stream))) | ||
| 483 | (asdf:load-system :cl-uglify-js)) | ||
| 484 | (let ((file (cadr *posix-argv*))) | ||
| 485 | (if file | ||
| 486 | (format t "~a" | ||
| 487 | (cl-uglify-js:ast-gen-code | ||
| 488 | (cl-uglify-js:ast-mangle | ||
| 489 | (cl-uglify-js:ast-squeeze | ||
| 490 | (with-open-file (in file) | ||
| 491 | (parse-js:parse-js in)))) | ||
| 492 | :beautify nil)) | ||
| 493 | (progn | ||
| 494 | (format *error-output* | ||
| 495 | "Please provide a JavaScript file.~%") | ||
| 496 | (sb-ext:exit :code 1)))))))) | ||
| 497 | (chmod script #o755) | ||
| 498 | #t))) | ||
| 499 | (inputs | ||
| 500 | `(("sbcl" ,sbcl) | ||
| 501 | ("sbcl-cl-uglify-js" ,sbcl-cl-uglify-js))) | ||
| 502 | (synopsis "JavaScript compressor"))) | ||
