2018-04-23 21:57:23 +02:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, givaro, pkgconfig, openblas
|
2018-03-07 18:45:46 +01:00
|
|
|
, gmpxx
|
|
|
|
, optimize ? false # impure
|
|
|
|
}:
|
2016-10-12 09:29:48 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "fflas-ffpack";
|
2018-03-22 16:31:23 +01:00
|
|
|
version = "2.3.2";
|
2016-10-12 09:29:48 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linbox-team";
|
|
|
|
repo = "${pname}";
|
|
|
|
rev = "v${version}";
|
2018-03-22 16:31:23 +01:00
|
|
|
sha256 = "1cqhassj2dny3gx0iywvmnpq8ca0d6m82xl5rz4mb8gaxr2kwddl";
|
2016-10-12 09:29:48 +02:00
|
|
|
};
|
2018-03-07 18:45:46 +01:00
|
|
|
checkInputs = [
|
|
|
|
gmpxx
|
|
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkgconfig
|
|
|
|
] ++ stdenv.lib.optionals doCheck checkInputs;
|
2018-04-23 21:57:23 +02:00
|
|
|
buildInputs = [ givaro openblas];
|
2018-03-07 18:45:46 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--with-blas-libs=-lopenblas"
|
2018-04-23 21:57:23 +02:00
|
|
|
"--with-lapack-libs=-lopenblas"
|
2018-03-07 18:45:46 +01:00
|
|
|
] ++ 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;
|
2016-10-12 09:29:48 +02:00
|
|
|
meta = {
|
|
|
|
inherit version;
|
|
|
|
description = ''Finite Field Linear Algebra Subroutines'';
|
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://linbox-team.github.io/fflas-ffpack/;
|
2016-10-12 09:29:48 +02:00
|
|
|
};
|
|
|
|
}
|