base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12 (#356361)
[NixPkgs.git] / pkgs / tools / security / nbtscanner / default.nix
blobec6d9a1d661bb6ddee9c2323a6db8f8fa094d750
1 { lib
2 , stdenv
3 , rustPlatform
4 , fetchFromGitHub
5 , Security
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "nbtscanner";
10   version = "0.0.2";
12   src = fetchFromGitHub {
13     owner = "jonkgrimes";
14     repo = pname;
15     rev = version;
16     hash = "sha256-lnTTutOc829COwfNhBkSK8UpiNnGsm7Da53b+eSBt1Q=";
17   };
19   cargoHash = "sha256-NffNQXKJ+b1w7Ar2M6UDev/AxruDEf8IGQ+mNdvU6e4=";
21   cargoPatches = [
22     ./Cargo.lock.patch
23   ];
25   buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security;
27   meta = with lib; {
28     description = "NetBIOS scanner written in Rust";
29     mainProgram = "nbtscanner";
30     homepage = "https://github.com/jonkgrimes/nbtscanner";
31     license = with licenses; [ mit ];
32     maintainers = with maintainers; [ fab ];
33   };