diff options
Diffstat (limited to 'gnu/packages/node.scm')
-rw-r--r-- | gnu/packages/node.scm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm index a3cf3c9199..1adb2cd07f 100644 --- a/gnu/packages/node.scm +++ b/gnu/packages/node.scm @@ -27,6 +27,7 @@ #:use-module (guix packages) #:use-module (guix derivations) #:use-module (guix download) + #:use-module (guix utils) #:use-module (guix build-system gnu) #:use-module (gnu packages) #:use-module (gnu packages adns) @@ -197,3 +198,15 @@ devices.") (license expat) (properties '((max-silent-time . 7200) ;2h, needed on ARM (timeout . 21600))))) ;6h + +(define-public libnode + (package + (inherit node) + (name "libnode") + (arguments + (substitute-keyword-arguments (package-arguments node) + ((#:configure-flags flags ''()) + `(cons* "--shared" "--without-npm" ,flags)) + ((#:phases phases '%standard-phases) + `(modify-phases ,phases + (delete 'patch-npm-shebang))))))) |