blob: ec6d9a1d661bb6ddee9c2323a6db8f8fa094d750 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "nbtscanner";
version = "0.0.2";
src = fetchFromGitHub {
owner = "jonkgrimes";
repo = pname;
rev = version;
hash = "sha256-lnTTutOc829COwfNhBkSK8UpiNnGsm7Da53b+eSBt1Q=";
};
cargoHash = "sha256-NffNQXKJ+b1w7Ar2M6UDev/AxruDEf8IGQ+mNdvU6e4=";
cargoPatches = [
./Cargo.lock.patch
];
buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security;
meta = with lib; {
description = "NetBIOS scanner written in Rust";
mainProgram = "nbtscanner";
homepage = "https://github.com/jonkgrimes/nbtscanner";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
|