19 , libappindicator-gtk3
37 stdenv.mkDerivation (finalAttrs: {
42 url = "https://github.com/BloodHoundAD/BloodHound/releases/download/v${finalAttrs.version}/BloodHound-linux-x64.zip";
43 hash = "sha256-gGfZ5Mj8rmz3dwKyOitRExkgOmSVDOqKpPxvGlE4izw=";
46 rpath = lib.makeLibraryPath [
91 gtk3 # needed for GSETTINGS_SCHEMAS_PATH
94 nativeBuildInputs = [ makeWrapper unzip ];
100 mkdir -p $out/{bin,/lib/BloodHound}
101 mv * $out/lib/BloodHound
102 chmod +x $out/lib/BloodHound/BloodHound
104 patchelf --set-interpreter ${stdenv.cc.bintools.dynamicLinker} \
105 $out/lib/BloodHound/BloodHound --set-rpath ${finalAttrs.rpath}:$out/lib/BloodHound \
106 --add-needed libudev.so # Needed to fix trace trap (core dump)
108 makeWrapper $out/lib/BloodHound/BloodHound $out/bin/BloodHound \
109 --prefix XDG_DATA_DIRS : $GSETTINGS_SCHEMAS_PATH \
110 --suffix PATH : ${lib.makeBinPath [xdg-utils]} \
111 --append-flags "--in-process-gpu" # fix for sandbox issues
117 description = "Active Directory reconnaissance and attack path management tool";
118 homepage = "https://github.com/BloodHoundAD/BloodHound";
119 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
120 changelog = "https://github.com/BloodHoundAD/BloodHound/releases/tag/v${finalAttrs.version}";
121 downloadPage = "https://github.com/BloodHoundAD/BloodHound/releases";
122 license = licenses.gpl3Plus;
123 maintainers = with maintainers; [ akechishiro ];
124 platforms = [ "x86_64-linux" ];
125 mainProgram = "BloodHound";