mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-02 17:09:09 +03:00
nodejs: make tests run, but disable
This commit is contained in:
parent
2a7bd7176e
commit
2a3a4ff642
@ -4,6 +4,7 @@
|
|||||||
, writeScript, coreutils, gnugrep, jq, curl, common-updater-scripts, nix
|
, writeScript, coreutils, gnugrep, jq, curl, common-updater-scripts, nix
|
||||||
, gnupg
|
, gnupg
|
||||||
, darwin ? null
|
, darwin ? null
|
||||||
|
, procps
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
@ -66,15 +67,26 @@ in
|
|||||||
|
|
||||||
inherit patches;
|
inherit patches;
|
||||||
|
|
||||||
preBuild = optionalString stdenv.isDarwin ''
|
postPatch = ''
|
||||||
|
patchShebangs .
|
||||||
|
sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' tools/gyp/pylib/gyp/xcode_emulation.py
|
||||||
|
|
||||||
|
# fix tests
|
||||||
|
for a in test/parallel/test-child-process-env.js \
|
||||||
|
test/parallel/test-child-process-exec-env.js \
|
||||||
|
test/parallel/test-child-process-default-options.js \
|
||||||
|
test/fixtures/syntax/good_syntax_shebang.js \
|
||||||
|
test/fixtures/syntax/bad_syntax_shebang.js ; do
|
||||||
|
substituteInPlace $a \
|
||||||
|
--replace "/usr/bin/env" "${coreutils}/bin/env"
|
||||||
|
done
|
||||||
|
'' + optionalString stdenv.isDarwin ''
|
||||||
sed -i -e "s|tr1/type_traits|type_traits|g" \
|
sed -i -e "s|tr1/type_traits|type_traits|g" \
|
||||||
-e "s|std::tr1|std|" src/util.h
|
-e "s|std::tr1|std|" src/util.h
|
||||||
'';
|
'';
|
||||||
|
|
||||||
prePatch = ''
|
checkInputs = [ procps ];
|
||||||
patchShebangs .
|
doCheck = false; # fails 4 out of 1453 tests
|
||||||
sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' tools/gyp/pylib/gyp/xcode_emulation.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
paxmark m $out/bin/node
|
paxmark m $out/bin/node
|
||||||
|
Loading…
Reference in New Issue
Block a user