forked from mirrors/nixpkgs
ecd20d2166
This cmake flag has no effect since no external blas library is provided in the build inputs.
43 lines
822 B
Nix
43 lines
822 B
Nix
{
|
|
stdenv,
|
|
fetchurl,
|
|
gfortran,
|
|
cmake,
|
|
python2,
|
|
shared ? false
|
|
}:
|
|
let
|
|
inherit (stdenv.lib) optional;
|
|
version = "3.8.0";
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "liblapack";
|
|
inherit version;
|
|
src = fetchurl {
|
|
url = "http://www.netlib.org/lapack/lapack-${version}.tar.gz";
|
|
sha256 = "1xmwi2mqmipvg950gb0rhgprcps8gy8sjm8ic9rgy2qjlv22rcny";
|
|
};
|
|
|
|
buildInputs = [ gfortran cmake ];
|
|
nativeBuildInputs = [ python2 ];
|
|
|
|
cmakeFlags = [
|
|
"-DCMAKE_Fortran_FLAGS=-fPIC"
|
|
"-DLAPACKE=ON"
|
|
]
|
|
++ (optional shared "-DBUILD_SHARED_LIBS=ON");
|
|
|
|
doCheck = ! shared;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
inherit version;
|
|
description = "Linear Algebra PACKage";
|
|
homepage = http://www.netlib.org/lapack/;
|
|
license = licenses.bsd3;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|