diff --git a/pkgs/by-name/ar/arpack/package.nix b/pkgs/by-name/ar/arpack/package.nix index 53d4353f1b8e..b85f192a867d 100644 --- a/pkgs/by-name/ar/arpack/package.nix +++ b/pkgs/by-name/ar/arpack/package.nix @@ -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; }; -} +})