fflas-ffpack: enable checks, disable simd

This commit is contained in:
Timo Kaufmann 2018-03-07 18:45:46 +01:00
parent 19a6f0e02b
commit c93579d0fa

View File

@ -1,4 +1,7 @@
{stdenv, fetchFromGitHub, autoreconfHook, givaro, pkgconfig, openblas, liblapack}:
{ stdenv, fetchFromGitHub, autoreconfHook, givaro, pkgconfig, openblas, liblapack
, gmpxx
, optimize ? false # impure
}:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "fflas-ffpack";
@ -9,9 +12,31 @@ stdenv.mkDerivation rec {
rev = "v${version}";
sha256 = "1cqhassj2dny3gx0iywvmnpq8ca0d6m82xl5rz4mb8gaxr2kwddl";
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
checkInputs = [
gmpxx
];
nativeBuildInputs = [
autoreconfHook
pkgconfig
] ++ stdenv.lib.optionals doCheck checkInputs;
buildInputs = [ givaro (liblapack.override {shared = true;}) openblas];
configureFlags = "--with-blas-libs=-lopenblas --with-lapack-libs=-llapack";
configureFlags = [
"--with-blas-libs=-lopenblas"
"--with-lapack-libs=-llapack"
] ++ 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 = ''Finite Field Linear Algebra Subroutines'';