Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 31 lines 697 B view raw
1{ 2 callPackage, 3 fetchpatch2, 4 openssl, 5 python3, 6 enableNpm ? true, 7}: 8 9let 10 buildNodejs = callPackage ./nodejs.nix { 11 inherit openssl; 12 python = python3; 13 }; 14 15 gypPatches = callPackage ./gyp-patches.nix { } ++ [ 16 ./gyp-patches-pre-v22-import-sys.patch 17 ]; 18in 19buildNodejs { 20 inherit enableNpm; 21 version = "20.18.1"; 22 sha256 = "91df43f8ab6c3f7be81522d73313dbdd5634bbca228ef0e6d9369fe0ab8cccd0"; 23 patches = [ 24 ./configure-emulator.patch 25 ./configure-armv6-vfpv2.patch 26 ./disable-darwin-v8-system-instrumentation-node19.patch 27 ./bypass-darwin-xcrun-node16.patch 28 ./node-npm-build-npm-package-logic.patch 29 ./use-correct-env-in-tests.patch 30 ] ++ gypPatches; 31}