Merge pull request #36437 from timokau/origin/fflas-ffpack-update

fflas-ffpack: 2.2.2 -> 2.3.2

authored by Matthew Justin Bauer and committed by GitHub d6b1e816 cf6fdcab

+28 -3
+28 -3
pkgs/development/libraries/fflas-ffpack/default.nix
··· 1 - {stdenv, fetchFromGitHub, autoreconfHook, givaro, pkgconfig, openblas, liblapack}: 1 + { stdenv, fetchFromGitHub, autoreconfHook, givaro, pkgconfig, openblas, liblapack 2 + , gmpxx 3 + , optimize ? false # impure 4 + }: 2 5 stdenv.mkDerivation rec { 3 6 name = "${pname}-${version}"; 4 7 pname = "fflas-ffpack"; ··· 9 12 rev = "v${version}"; 10 13 sha256 = "1cqhassj2dny3gx0iywvmnpq8ca0d6m82xl5rz4mb8gaxr2kwddl"; 11 14 }; 12 - nativeBuildInputs = [ autoreconfHook pkgconfig ]; 15 + checkInputs = [ 16 + gmpxx 17 + ]; 18 + nativeBuildInputs = [ 19 + autoreconfHook 20 + pkgconfig 21 + ] ++ stdenv.lib.optionals doCheck checkInputs; 13 22 buildInputs = [ givaro (liblapack.override {shared = true;}) openblas]; 14 - configureFlags = "--with-blas-libs=-lopenblas --with-lapack-libs=-llapack"; 23 + configureFlags = [ 24 + "--with-blas-libs=-lopenblas" 25 + "--with-lapack-libs=-llapack" 26 + ] ++ stdenv.lib.optionals (!optimize) [ 27 + # disable SIMD instructions (which are enabled *when available* by default) 28 + "--disable-sse" 29 + "--disable-sse2" 30 + "--disable-sse3" 31 + "--disable-ssse3" 32 + "--disable-sse41" 33 + "--disable-sse42" 34 + "--disable-avx" 35 + "--disable-avx2" 36 + "--disable-fma" 37 + "--disable-fma4" 38 + ]; 39 + doCheck = true; 15 40 meta = { 16 41 inherit version; 17 42 description = ''Finite Field Linear Algebra Subroutines'';