arpack: use final attribute pattern
This commit is contained in:
@@ -12,14 +12,14 @@
|
||||
assert useMpi -> !blas.isILP64;
|
||||
assert useAccel -> stdenv.hostPlatform.isDarwin;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "arpack${lib.optionalString useMpi "-mpi"}";
|
||||
version = "3.9.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "opencollab";
|
||||
repo = "arpack-ng";
|
||||
rev = version;
|
||||
tag = finalAttrs.version;
|
||||
sha256 = "sha256-HCvapLba8oLqx9I5+KDAU0s/dTmdWOEilS75i4gyfC0=";
|
||||
};
|
||||
|
||||
@@ -53,11 +53,11 @@ stdenv.mkDerivation rec {
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "BUILD_SHARED_LIBS" stdenv.hostPlatform.hasSharedLibraries)
|
||||
(lib.cmakeBool "EIGEN" true)
|
||||
(lib.cmakeBool "EXAMPLES" doCheck)
|
||||
(lib.cmakeBool "EXAMPLES" finalAttrs.doCheck)
|
||||
(lib.cmakeBool "ICB" true)
|
||||
(lib.cmakeBool "INTERFACE64" (!useAccel && blas.isILP64))
|
||||
(lib.cmakeBool "MPI" useMpi)
|
||||
(lib.cmakeBool "TESTS" doCheck)
|
||||
(lib.cmakeBool "TESTS" finalAttrs.doCheck)
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
"-DBLA_VENDOR=${if useAccel then "Apple" else "Generic"}"
|
||||
];
|
||||
@@ -71,7 +71,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/opencollab/arpack-ng";
|
||||
changelog = "https://github.com/opencollab/arpack-ng/blob/${src.rev}/CHANGES";
|
||||
changelog = "https://github.com/opencollab/arpack-ng/blob/${finalAttrs.version}/CHANGES";
|
||||
description = ''
|
||||
A collection of Fortran77 subroutines to solve large scale eigenvalue
|
||||
problems.
|
||||
@@ -80,4 +80,4 @@ stdenv.mkDerivation rec {
|
||||
maintainers = with lib.maintainers; [ ttuegel dotlambda ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user