curseofwar: use finalAttrs pattern

This commit is contained in:
Francesco Gazzetta 2024-02-19 16:29:21 +01:00
parent 4113399ce0
commit bbc575d87c

View file

@ -4,14 +4,14 @@
, SDL , SDL
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "curseofwar"; pname = "curseofwar";
version = "1.3.0"; version = "1.3.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "a-nikolaev"; owner = "a-nikolaev";
repo = pname; repo = "curseofwar";
rev = "v${version}"; rev = "v${finalAttrs.version}";
sha256 = "1wd71wdnj9izg5d95m81yx3684g4zdi7fsy0j5wwnbd9j34ilz1i"; sha256 = "1wd71wdnj9izg5d95m81yx3684g4zdi7fsy0j5wwnbd9j34ilz1i";
}; };
@ -33,5 +33,4 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ fgaz ]; maintainers = with maintainers; [ fgaz ];
platforms = platforms.all; platforms = platforms.all;
}; };
} })