From b714c05c4a416ce498e31eb454e5251702b2d4cd Mon Sep 17 00:00:00 2001 From: Pascal Dietrich Date: Mon, 13 Apr 2026 15:24:07 +0200 Subject: [PATCH] netpeek: switch to finalAttrs --- pkgs/by-name/ne/netpeek/package.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/ne/netpeek/package.nix b/pkgs/by-name/ne/netpeek/package.nix index c7cb6829bd63..de30c0f7d2d3 100644 --- a/pkgs/by-name/ne/netpeek/package.nix +++ b/pkgs/by-name/ne/netpeek/package.nix @@ -8,12 +8,10 @@ desktop-file-utils, gobject-introspection, wrapGAppsHook4, - pkg-config, libadwaita, libportal-gtk4, - gnome, }: -python3Packages.buildPythonApplication rec { +python3Packages.buildPythonApplication (finalAttrs: { pname = "netpeek"; version = "0.2.6"; pyproject = false; @@ -21,7 +19,7 @@ python3Packages.buildPythonApplication rec { src = fetchFromGitHub { owner = "ZingyTomato"; repo = "NetPeek"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-SFY/bUUS4AOniOGjngH/fUHrYiq+dMWxHYvoSkhfnkA="; }; @@ -32,7 +30,6 @@ python3Packages.buildPythonApplication rec { desktop-file-utils gobject-introspection wrapGAppsHook4 - pkg-config ]; buildInputs = [ @@ -55,10 +52,10 @@ python3Packages.buildPythonApplication rec { meta = { description = "Modern network scanner for GNOME"; homepage = "https://github.com/ZingyTomato/NetPeek"; - changelog = "https://github.com/ZingyTomato/NetPeek/releases/tag/${src.tag}"; + changelog = "https://github.com/ZingyTomato/NetPeek/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.gpl3Plus; maintainers = with lib.maintainers; [ Cameo007 ]; mainProgram = "netpeek"; platforms = lib.platforms.linux; }; -} +})