warzone2100: use finalAttrs pattern

This commit is contained in:
Francesco Gazzetta 2024-02-19 16:44:16 +01:00
parent 1aa139fa7d
commit 9159b54cf6

View File

@ -44,12 +44,12 @@ let
};
in
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
inherit pname;
version = "4.4.2";
src = fetchurl {
url = "mirror://sourceforge/project/warzone2100/releases/${version}/warzone2100_src.tar.xz";
url = "mirror://sourceforge/project/warzone2100/releases/${finalAttrs.version}/warzone2100_src.tar.xz";
hash = "sha256-O5Yqxqp1vKYr8uvAZ1SdsI/kocOzg0KRCirCqqvLrN4=";
};
@ -142,4 +142,4 @@ stdenv.mkDerivation rec {
# https://github.com/Warzone2100/warzone2100/blob/master/macosx/README.md
broken = stdenv.isDarwin;
};
}
})