netscanner: refactor

this shouldn't create any rebuilds
This commit is contained in:
quantenzitrone
2026-02-06 22:10:34 +01:00
parent 85af75cd70
commit d6179efb7c
+5 -7
View File
@@ -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";
};
}
})