git.iko.soy/typeable/nixpkgs
on master help sign in
nim: disable test supposedly broken on Aarch64
commit651c1784a943488b16dad56af7a382091f2e45e8 authorroyneary <christian@ulrich.earth> dateSat 27 Oct 2018, 20:39 (8 years ago) parent89d71c5
1 file changed+4
pkgs/development/compilers/nim/default.nix+4
pkgs/development/compilers/nim/default.nix+4
@@ -58,6 +58,7 @@ stdenv.mkDerivation rec {
5858
5959 patchPhase =
6060 let disableTest = ''sed -i '1i discard \"\"\"\n disabled: true\n\"\"\"\n\n' '';
61+ disableStdLibTest = ''sed -i -e '/^when isMainModule/,/^END$/{s/^/#/}' '';
6162 disableCompile = ''sed -i -e 's/^/#/' '';
6263 in ''
6364 substituteInPlace ./tests/async/tioselectors.nim --replace "/bin/sleep" "sleep"
@@ -66,6 +67,9 @@ stdenv.mkDerivation rec {
6667
6768 # disable tests requiring network access (not available in the build container)
6869 ${disableTest} ./tests/stdlib/thttpclient.nim
70+ '' + lib.optionalString stdenv.isAarch64 ''
71+ # disable test supposedly broken on aarch64
72+ ${disableStdLibTest} ./lib/pure/stats.nim
6973 '';
7074
7175 checkPhase = ''