Paste number 322257: node-legacy non-working

Paste number 322257: node-legacy non-working
Pasted by: jlicht
When:3 years, 9 months ago
Share:Tweet this! | http://paste.lisp.org/+6WNL
Channel:None
Paste contents:
Raw Source | XML | Display As
(define-public node-legacy
  (package
    (name "node-legacy")
    (version "0.5.0")
    (source (origin
              (method url-fetch)
              (uri (string-append "http://nodejs.org/dist/v" version
                                  "/node-v" version ".tar.gz"))
              (sha256
               (base32
                "1fbq56w40h71l304bq8ggf5z80g0bsldbqciy3gm8dild5pphzmc"
                ))))
    (build-system gnu-build-system)
    (arguments
     ;; TODO: Package http_parser and add --shared-http-parser.
     '(
       #:phases
       (modify-phases %standard-phases
         (replace 'configure
           ;; Node's configure script is actually a python script, so we can't
           ;; run it with bash.
           (lambda* (#:key outputs (configure-flags '()) inputs
                     #:allow-other-keys)
             (let* ((prefix (assoc-ref outputs "out"))
                    (flags
                     (cons (string-append "--prefix=" prefix)
                           configure-flags)))
               (format #t "build directory: ~s~%" (getcwd))
               (format #t "configure flags: ~s~%" flags)
               (zero? (apply system*
                             "./configure" flags)))))
         (add-before 'configure 'configure-environment
           (lambda* (#:key inputs #:allow-other-keys)
             (let ((libc (assoc-ref inputs "libc")))
               ;;(setenv "LIBRARY_PATH"
               ;;(string-append libc "/lib"))
               #t))))
       #:make-flags (list (string-append "CXXFLAGS=-I"
                                         (assoc-ref %build-inputs "linux-headers")
                                         "/include"))
       ))
    (native-inputs
     `(
       ("python" ,python-2)
       ("linux-headers" ,linux-libre-headers)
       ("util-linux" ,util-linux)
       ("pkg-config" ,pkg-config)
       ;;("perl" ,perl)
       ;;("procps" ,procps)
       ;;("util-linux" ,util-linux)
       ;;("which" ,which)
       ))
    (native-search-paths
     (list (search-path-specification
            (variable "NODE_PATH")
            (files '("lib/node_modules")))))
    (inputs
     `(
       ;;("libuv" ,libuv)
       ("openssl" ,openssl)
       ;;("zlib" ,compression:zlib)
       ))
    (synopsis "Evented I/O for V8 JavaScript")
    (description "Node.js is a platform built on Chrome's JavaScript runtime
for easily building fast, scalable network applications.  Node.js uses an
event-driven, non-blocking I/O model that makes it lightweight and efficient,
perfect for data-intensive real-time applications that run across distributed
devices.")
    (home-page "http://nodejs.org/")
    (license expat)))

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.