diff --git a/pkgs/by-name/ne/netscanner/package.nix b/pkgs/by-name/ne/netscanner/package.nix index b8f771f73eb1..65e946da47fb 100644 --- a/pkgs/by-name/ne/netscanner/package.nix +++ b/pkgs/by-name/ne/netscanner/package.nix @@ -5,19 +5,17 @@ makeWrapper, iw, }: -let + +rustPlatform.buildRustPackage (finalAttrs: { pname = "netscanner"; version = "0.6.41"; -in -rustPlatform.buildRustPackage { - inherit pname version; nativeBuildInputs = [ makeWrapper ]; src = fetchFromGitHub { owner = "Chleba"; repo = "netscanner"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-8Srsts0FDLMT01YW5Guv3r8yx5i5ua7bhAFbQ5BMN74="; }; @@ -31,9 +29,9 @@ rustPlatform.buildRustPackage { meta = { description = "Network scanner with features like WiFi scanning, packetdump and more"; homepage = "https://github.com/Chleba/netscanner"; - changelog = "https://github.com/Chleba/netscanner/releases/tag/v${version}"; + changelog = "https://github.com/Chleba/netscanner/releases/tag/v${finalAttrs.version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ NotAShelf ]; mainProgram = "netscanner"; }; -} +})