From 651c1784a943488b16dad56af7a382091f2e45e8 Mon Sep 17 00:00:00 2001 From: royneary Date: Sat, 27 Oct 2018 20:39:02 +0200 Subject: [PATCH] nim: disable test supposedly broken on Aarch64 --- pkgs/development/compilers/nim/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/compilers/nim/default.nix b/pkgs/development/compilers/nim/default.nix index 28017006273d..3596c17b4071 100644 --- a/pkgs/development/compilers/nim/default.nix +++ b/pkgs/development/compilers/nim/default.nix @@ -58,6 +58,7 @@ stdenv.mkDerivation rec { patchPhase = let disableTest = ''sed -i '1i discard \"\"\"\n disabled: true\n\"\"\"\n\n' ''; + disableStdLibTest = ''sed -i -e '/^when isMainModule/,/^END$/{s/^/#/}' ''; disableCompile = ''sed -i -e 's/^/#/' ''; in '' substituteInPlace ./tests/async/tioselectors.nim --replace "/bin/sleep" "sleep" @@ -66,6 +67,9 @@ stdenv.mkDerivation rec { # disable tests requiring network access (not available in the build container) ${disableTest} ./tests/stdlib/thttpclient.nim + '' + lib.optionalString stdenv.isAarch64 '' + # disable test supposedly broken on aarch64 + ${disableStdLibTest} ./lib/pure/stats.nim ''; checkPhase = ''