about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2020-03-06 20:39:21 +0100
committerPeter Simons <simons@cryp.to>2020-03-06 22:15:14 +0100
commitadcd693c2c6da979717ea5e73ae6c0fca03aedf2 (patch)
treeb9eee712ceae39dec0dcc5d49f147b1b1270a612
parent46a81f9a15c52b2391b45bd3b24432dc547209d4 (diff)
haskell-cryptonite: disable the test suite to fix the build on older CPUs
Machines without AES-NI support cannot run the binary.
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index 123493a7694ba..328df794a8e9a 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -1453,4 +1453,11 @@ self: super: {
   # https://github.com/phadej/binary-orphans/issues/45
   binary-instances = dontCheck super.binary-instances;
 
+  # Disabling the test suite lets the build succeed on older CPUs
+  # that are unable to run the generated library because they
+  # lack support for AES-NI, like some of our Hydra build slaves
+  # do. See https://github.com/NixOS/nixpkgs/issues/81915 for
+  # details.
+  cryptonite = dontCheck super.cryptonite;
+
 } // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super