From ca2e1f021268593fedc7afcd070d56c85cfb5c70 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Sat, 14 Dec 2024 18:35:31 +0800 Subject: [PATCH] iproute2mac: use finalAttrs --- pkgs/by-name/ip/iproute2mac/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ip/iproute2mac/package.nix b/pkgs/by-name/ip/iproute2mac/package.nix index 8149580703c8..a6c5003492a5 100644 --- a/pkgs/by-name/ip/iproute2mac/package.nix +++ b/pkgs/by-name/ip/iproute2mac/package.nix @@ -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; }; -} +})