summary refs log tree commit diff
path: root/pkgs/development/libraries/givaro
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2018-03-08 00:05:52 +0100
committerTimo Kaufmann <timokau@zoho.com>2018-03-16 00:53:37 +0100
commit9c7901691589b09070100f1af5727c34aa43965f (patch)
tree9ddc39255bd2f76ef4cc14db9be2c78df0e9207c /pkgs/development/libraries/givaro
parentb778e99fc38ccaacb4b6d05db9533f46f0e0f891 (diff)
downloadnixpkgs-9c7901691589b09070100f1af5727c34aa43965f.tar
nixpkgs-9c7901691589b09070100f1af5727c34aa43965f.tar.gz
nixpkgs-9c7901691589b09070100f1af5727c34aa43965f.tar.bz2
nixpkgs-9c7901691589b09070100f1af5727c34aa43965f.tar.lz
nixpkgs-9c7901691589b09070100f1af5727c34aa43965f.tar.xz
nixpkgs-9c7901691589b09070100f1af5727c34aa43965f.tar.zst
nixpkgs-9c7901691589b09070100f1af5727c34aa43965f.zip
givaro: 4.0.2 -> 4.0.4
Diffstat (limited to 'pkgs/development/libraries/givaro')
-rw-r--r--pkgs/development/libraries/givaro/default.nix24
1 files changed, 21 insertions, 3 deletions
diff --git a/pkgs/development/libraries/givaro/default.nix b/pkgs/development/libraries/givaro/default.nix
index 335afa566db..3556acb0590 100644
--- a/pkgs/development/libraries/givaro/default.nix
+++ b/pkgs/development/libraries/givaro/default.nix
@@ -1,16 +1,34 @@
-{stdenv, fetchFromGitHub, automake, autoconf, libtool, autoreconfHook, gmpxx}:
+{ stdenv, fetchFromGitHub, automake, autoconf, libtool, autoreconfHook, gmpxx
+, optimize ? false # impure
+}:
 stdenv.mkDerivation rec {
   name = "${pname}-${version}";
   pname = "givaro";
-  version = "4.0.2";
+  version = "4.0.4";
   src = fetchFromGitHub {
     owner = "linbox-team";
     repo = "${pname}";
     rev = "v${version}";
-    sha256 = "04n1lyc823z3l1d7mnmqpc9z1pkn646szjchasbfkn74m7cb0qz7";
+    sha256 = "199p8wyj5i63jbnk7j8qbdbfp5rm2lpmcxyk3mdjy9bz7ygx3hhy";
   };
   nativeBuildInputs = [ autoreconfHook ];
   buildInputs = [autoconf automake libtool gmpxx];
+  configureFlags = [
+    "--disable-optimization"
+  ] ++ stdenv.lib.optionals (!optimize) [
+    # disable SIMD instructions (which are enabled *when available* by default)
+    "--disable-sse"
+    "--disable-sse2"
+    "--disable-sse3"
+    "--disable-ssse3"
+    "--disable-sse41"
+    "--disable-sse42"
+    "--disable-avx"
+    "--disable-avx2"
+    "--disable-fma"
+    "--disable-fma4"
+  ];
+  doCheck = true;
   meta = {
     inherit version;
     description = ''A C++ library for arithmetic and algebraic computations'';