diff --git a/pkgs/development/libraries/science/math/arpack/default.nix b/pkgs/development/libraries/science/math/arpack/default.nix index 02d51f0c419..0b927bb3eac 100644 --- a/pkgs/development/libraries/science/math/arpack/default.nix +++ b/pkgs/development/libraries/science/math/arpack/default.nix @@ -1,14 +1,9 @@ { stdenv, fetchFromGitHub, cmake , gfortran, blas, lapack, eigen }: -with stdenv.lib; - -let - version = "3.7.0"; -in -stdenv.mkDerivation { +stdenv.mkDerivation rec { pname = "arpack"; - inherit version; + version = "3.7.0"; src = fetchFromGitHub { owner = "opencollab"; @@ -18,16 +13,18 @@ stdenv.mkDerivation { }; nativeBuildInputs = [ cmake ]; - buildInputs = [ gfortran blas lapack eigen ]; + buildInputs = assert (blas.isILP64 == lapack.isILP64); [ + gfortran + blas + lapack + eigen + ]; doCheck = true; - BLAS_LIBS = "-L${blas}/lib -lblas"; - LAPACK_LIBS = "-L${lapack}/lib -llapack"; - cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" - "-DINTERFACE64=${optionalString blas.isILP64 "1"}" + "-DINTERFACE64=${stdenv.lib.optionalString blas.isILP64 "1"}" ]; preCheck = if stdenv.isDarwin then ''