grass: code cleanup

* remove redundant `with`
* get correct package version using `finalAttrs`
This commit is contained in:
Ivan Mincik 2023-09-17 21:07:59 +02:00
parent 02aceb0307
commit 96bdf87dfe

View File

@ -32,14 +32,14 @@
, zstd
}:
stdenv.mkDerivation (finalAttrs: rec {
stdenv.mkDerivation (finalAttrs: {
pname = "grass";
version = "8.3.0";
src = with lib; fetchFromGitHub {
src = fetchFromGitHub {
owner = "OSGeo";
repo = "grass";
rev = version;
rev = finalAttrs.version;
hash = "sha256-YHQtvp/AYMWme46yIc4lE/izjqVePnPxn3GY5RRfPq4=";
};