qrupdate: 1.1.2 -> 1.1.5
Switch to a maintained fork.
This commit is contained in:
parent
2e8194d47b
commit
c3d9d9a38f
|
@ -1,54 +1,50 @@
|
||||||
{ stdenv
|
{ stdenv
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchFromGitHub
|
||||||
, gfortran
|
, gfortran
|
||||||
, blas
|
, blas
|
||||||
|
, cmake
|
||||||
, lapack
|
, lapack
|
||||||
, which
|
, which
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "qrupdate";
|
pname = "qrupdate";
|
||||||
version = "1.1.2";
|
version = "1.1.5";
|
||||||
src = fetchurl {
|
|
||||||
url = "mirror://sourceforge/qrupdate/${pname}-${version}.tar.gz";
|
src = fetchFromGitHub {
|
||||||
sha256 = "024f601685phcm1pg8lhif3lpy5j9j0k6n0r46743g4fvh8wg8g2";
|
owner = "mpimd-csc";
|
||||||
|
repo = "qrupdate-ng";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-dHxLPrN00wwozagY2JyfZkD3sKUD2+BcnbjNgZepzFg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
preBuild =
|
cmakeFlags = assert (blas.isILP64 == lapack.isILP64); [
|
||||||
# Check that blas and lapack are compatible
|
"-DCMAKE_Fortran_FLAGS=${toString ([
|
||||||
assert (blas.isILP64 == lapack.isILP64);
|
"-std=legacy"
|
||||||
# We don't have structuredAttrs yet implemented, and we need to use space
|
] ++ lib.optionals blas.isILP64 [
|
||||||
# seprated values in makeFlags, so only this works.
|
# If another application intends to use qrupdate compiled with blas with
|
||||||
''
|
# 64 bit support, it should add this to it's FFLAGS as well. See (e.g):
|
||||||
makeFlagsArray+=(
|
# https://savannah.gnu.org/bugs/?50339
|
||||||
"LAPACK=-L${lapack}/lib -llapack"
|
"-fdefault-integer-8"
|
||||||
"BLAS=-L${blas}/lib -lblas"
|
])}"
|
||||||
"PREFIX=${placeholder "out"}"
|
];
|
||||||
"FFLAGS=${toString ([
|
|
||||||
"-std=legacy"
|
|
||||||
] ++ lib.optionals blas.isILP64 [
|
|
||||||
# If another application intends to use qrupdate compiled with blas with
|
|
||||||
# 64 bit support, it should add this to it's FFLAGS as well. See (e.g):
|
|
||||||
# https://savannah.gnu.org/bugs/?50339
|
|
||||||
"-fdefault-integer-8"
|
|
||||||
])}"
|
|
||||||
)
|
|
||||||
'';
|
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
checkTarget = "test";
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
buildFlags = [ "lib" "solib" ];
|
which
|
||||||
|
gfortran
|
||||||
installTargets = lib.optionals stdenv.isDarwin [ "install-staticlib" "install-shlib" ];
|
];
|
||||||
|
buildInputs = [
|
||||||
nativeBuildInputs = [ which gfortran ];
|
blas
|
||||||
|
lapack
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Library for fast updating of qr and cholesky decompositions";
|
description = "Library for fast updating of qr and cholesky decompositions";
|
||||||
homepage = "https://sourceforge.net/projects/qrupdate/";
|
homepage = "https://github.com/mpimd-csc/qrupdate-ng";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = with maintainers; [ doronbehar ];
|
maintainers = with maintainers; [ doronbehar ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
|
|
Loading…
Reference in a new issue