Merge pull request #280323 from NixOS/proj-remove-rec

proj: don't use rec with finalAttrs function
This commit is contained in:
Robert Scott 2024-01-12 22:44:29 +00:00 committed by GitHub
commit 131c833d3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,14 +15,14 @@
, cacert
}:
stdenv.mkDerivation (finalAttrs: rec {
stdenv.mkDerivation (finalAttrs: {
pname = "proj";
version = "9.3.1";
src = fetchFromGitHub {
owner = "OSGeo";
repo = "PROJ";
rev = version;
rev = finalAttrs.version;
hash = "sha256-M8Zgy5xnmZu7mzxXXGqaIfe7o7iMf/1sOJVOBsTvtdQ=";
};
@ -68,7 +68,7 @@ stdenv.mkDerivation (finalAttrs: rec {
};
meta = with lib; {
changelog = "https://github.com/OSGeo/PROJ/blob/${src.rev}/NEWS";
changelog = "https://github.com/OSGeo/PROJ/blob/${finalAttrs.src.rev}/NEWS";
description = "Cartographic Projections Library";
homepage = "https://proj.org/";
license = licenses.mit;