From adcd693c2c6da979717ea5e73ae6c0fca03aedf2 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 6 Mar 2020 20:39:21 +0100 Subject: [PATCH] haskell-cryptonite: disable the test suite to fix the build on older CPUs Machines without AES-NI support cannot run the binary. --- pkgs/development/haskell-modules/configuration-common.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 123493a7694..328df794a8e 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