diff options
author | Timo Kaufmann <timokau@zoho.com> | 2019-04-04 14:50:38 +0200 |
---|---|---|
committer | Timo Kaufmann <timokau@zoho.com> | 2019-04-04 14:54:55 +0200 |
commit | 7f22a4297638c6d0ea5cfcbe3b83a011d1286c23 (patch) | |
tree | f21f76998360d23d44325f29e18d808127dfdeaa /pkgs/applications/science/math/nauty/default.nix | |
parent | 15045e6233838c32847cbd60d267070f078e0262 (diff) | |
download | nixpkgs-7f22a4297638c6d0ea5cfcbe3b83a011d1286c23.tar nixpkgs-7f22a4297638c6d0ea5cfcbe3b83a011d1286c23.tar.gz nixpkgs-7f22a4297638c6d0ea5cfcbe3b83a011d1286c23.tar.bz2 nixpkgs-7f22a4297638c6d0ea5cfcbe3b83a011d1286c23.tar.lz nixpkgs-7f22a4297638c6d0ea5cfcbe3b83a011d1286c23.tar.xz nixpkgs-7f22a4297638c6d0ea5cfcbe3b83a011d1286c23.tar.zst nixpkgs-7f22a4297638c6d0ea5cfcbe3b83a011d1286c23.zip |
nauty: disable cpu feature detection
Diffstat (limited to 'pkgs/applications/science/math/nauty/default.nix')
-rw-r--r-- | pkgs/applications/science/math/nauty/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/nauty/default.nix b/pkgs/applications/science/math/nauty/default.nix index 35c4fdb829b..7351de53cfc 100644 --- a/pkgs/applications/science/math/nauty/default.nix +++ b/pkgs/applications/science/math/nauty/default.nix @@ -1,6 +1,7 @@ { stdenv , lib , fetchurl +, optimize ? false # impure }: stdenv.mkDerivation rec { name = "nauty-${version}"; @@ -10,6 +11,13 @@ stdenv.mkDerivation rec { sha256 = "05z6mk7c31j70md83396cdjmvzzip1hqb88pfszzc6k4gy8h3m2y"; }; outputs = [ "out" "dev" ]; + configureFlags = lib.optionals (!optimize) [ + # Prevent nauty from sniffing some cpu features. While those are very + # widely available, it can lead to nasty bugs when they are not available: + # https://groups.google.com/forum/#!topic/sage-packaging/Pe4SRDNYlhA + "--disable-popcnt" + "--disable-clz" + ]; buildInputs = []; installPhase = '' mkdir -p "$out"/{bin,share/doc/nauty} "$dev"/{lib,include/nauty} |