Paste number 322257: node-legacy non-working

Paste number 322257: node-legacy non-working
Pasted by: jlicht
When:5 years, 3 months ago
Share:Tweet this! |
Paste contents:
Raw Source | XML | Display As
(define-public node-legacy
    (name "node-legacy")
    (version "0.5.0")
    (source (origin
              (method url-fetch)
              (uri (string-append "" version
                                  "/node-v" version ".tar.gz"))
    (build-system gnu-build-system)
     ;; TODO: Package http_parser and add --shared-http-parser.
       (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
             (let* ((prefix (assoc-ref outputs "out"))
                     (cons (string-append "--prefix=" prefix)
               (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"))
       #:make-flags (list (string-append "CXXFLAGS=-I"
                                         (assoc-ref %build-inputs "linux-headers")
       ("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)
     (list (search-path-specification
            (variable "NODE_PATH")
            (files '("lib/node_modules")))))
       ;;("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
    (home-page "")
    (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.