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

fflas-ffpack: 2.2.2 -> 2.3.2
This commit is contained in:
Matthew Justin Bauer 2018-04-23 12:04:54 -05:00 committed by GitHub
commit d6b1e816eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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'';