iproute2mac: use finalAttrs (#365157)

This commit is contained in:
Weijia Wang 2024-12-15 01:50:27 +01:00 committed by GitHub
commit e4cef11b78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,14 +7,14 @@
python3,
}:
stdenv.mkDerivation rec {
version = "1.5.4";
stdenv.mkDerivation (finalAttrs: {
pname = "iproute2mac";
version = "1.5.4";
src = fetchFromGitHub {
owner = "brona";
repo = "iproute2mac";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-hmSqJ2gc0DOXUuFrp1ZG8usjFdo07zjV/1JLs5r/E04=";
};
@ -52,4 +52,4 @@ stdenv.mkDerivation rec {
maintainers = with lib.maintainers; [ jiegec ];
platforms = lib.platforms.darwin;
};
}
})