nixpkgs/pkgs/by-name/si/silenthound/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

44 lines
898 B
Nix

{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "silenthound";
version = "0-unstable-2022-12-14";
format = "other";
src = fetchFromGitHub {
owner = "layer8secure";
repo = "SilentHound";
rev = "f04746aaca29e377c8badcbd6d8f6584deb9e919";
hash = "sha256-alTgo8/aqwERt/JC4W3KodAdyfNZyG3XqCp3z4OpS68=";
};
propagatedBuildInputs = with python3.pkgs; [
colorama
python-ldap
];
dontBuild = true;
installPhase = ''
runHook preInstall
install -vD $pname.py $out/bin/$pname
runHook postInstall
'';
# Only script available
doCheck = false;
meta = with lib; {
description = "Tool to enumerate an Active Directory Domain";
homepage = "https://github.com/layer8secure/SilentHound";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
mainProgram = "silenthound";
};
}