-
-
Save joepie91/0fd08dc297679dc64c9732af549c6604 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgs: | |
with pkgs; | |
let | |
version = "0.10.42"; | |
deps = { | |
inherit http-parser; | |
# inherit openssl; | |
cares = c-ares; | |
}; | |
sharedConfigureFlags = name: [ | |
"--shared-${name}" | |
"--shared-${name}-includes=${builtins.getAttr name deps}/include" | |
"--shared-${name}-libpath=${builtins.getAttr name deps}/lib" | |
]; | |
inherit (stdenv.lib) concatMap optional optionals maintainers licenses platforms; | |
in stdenv.mkDerivation { | |
name = "nodejs-${version}"; | |
src = fetchurl { | |
url = "http://nodejs.org/dist/v${version}/node-v${version}.tar.gz"; | |
sha256 = "01g19mq8b3b828f59x7bv79973w5sw4133ll1dxml37qk0vdbhgb"; | |
}; | |
configureFlags = (concatMap sharedConfigureFlags (builtins.attrNames deps)) ++ [ | |
"--shared-zlib" | |
"--shared-zlib-includes=${zlib.dev}/include" | |
"--shared-zlib-libpath=${zlib}/lib" | |
]; | |
buildInputs = [ python which utillinux gcc5 zlib ]; | |
setupHook = ./setup-hook.sh; | |
enableParallelBuilding = true; | |
passthru.interpreterName = "nodejs-0.10"; | |
meta = { | |
description = "Event-driven I/O framework for the V8 JavaScript engine"; | |
homepage = http://nodejs.org; | |
license = licenses.mit; | |
platforms = platforms.linux; | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> {} }: | |
with pkgs; | |
let | |
nodejs_0_10 = import ./nix-shell/nodejs_0_10.nix pkgs; | |
manatee = import ./nix-shell/manatee.nix pkgs; | |
in stdenv.mkDerivation rec { | |
name = "lamassu-machine-development-environment"; | |
buildInputs = [ | |
nodejs_0_10 | |
manatee | |
ruby | |
libjpeg | |
gcc5 | |
]; | |
LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath buildInputs; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment