nixpkgs/pkgs/tools/security/nbtscanner/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

35 lines
735 B
Nix

{ 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.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 ];
};
}