nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 fetchCrate,
3 lib,
4 libkrb5,
5 nix-update-script,
6 pkg-config,
7 rustPlatform,
8 versionCheckHook,
9}:
10
11rustPlatform.buildRustPackage (finalAttrs: {
12 pname = "rusthound-ce";
13 version = "2.4.7";
14
15 src = fetchCrate {
16 inherit (finalAttrs) pname version;
17 hash = "sha256-GxkrTXlCVPEZvsu6wck1BbXinFSdnTmnWHy9LH1ymdQ=";
18 };
19
20 cargoHash = "sha256-mvsGi5M4Ut0BnX2204AX2nBIdZ8Gtap8wf9pWc6RlpU=";
21
22 nativeBuildInputs = [
23 pkg-config
24 rustPlatform.bindgenHook
25 ];
26
27 buildInputs = [
28 libkrb5
29 ];
30
31 nativeInstallCheckInputs = [ versionCheckHook ];
32 versionCheckProgramArg = "--version";
33 doInstallCheck = true;
34
35 passthru.updateScript = nix-update-script { };
36
37 meta = {
38 description = "Active Directory data ingestor for BloodHound Community Edition written in Rust";
39 homepage = "https://github.com/g0h4n/RustHound-CE";
40 changelog = "https://github.com/g0h4n/RustHound-CE/releases/tag/v${finalAttrs.version}";
41 license = lib.licenses.mit;
42 maintainers = [ lib.maintainers.eleonora ];
43 mainProgram = "rusthound-ce";
44 };
45})