From e561362a37755d73aa7d11af93f622257eb25d1a Mon Sep 17 00:00:00 2001 From: Asier Armenteros Date: Wed, 18 Sep 2024 18:07:49 +0200 Subject: [PATCH] polenum: init at 1.6.1-unstable-2024-07-30 --- pkgs/by-name/po/polenum/package.nix | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgs/by-name/po/polenum/package.nix diff --git a/pkgs/by-name/po/polenum/package.nix b/pkgs/by-name/po/polenum/package.nix new file mode 100644 index 0000000000000..728b47ed4e8df --- /dev/null +++ b/pkgs/by-name/po/polenum/package.nix @@ -0,0 +1,38 @@ +{ + lib, + fetchFromGitHub, + python3, +}: + +python3.pkgs.buildPythonApplication rec { + pname = "polenum"; + version = "1.6.1-unstable-2024-07-30"; + format = "other"; + + src = fetchFromGitHub { + owner = "Wh1t3Fox"; + repo = "polenum"; + rev = "6f95ce0f9936d8c20820e199a4bb1ea68d2f061f"; + hash = "sha256-aCX7dByfkUSFHjhRAjrFhbbeIgYNGixnB5pHE/lftng="; + }; + + propagatedBuildInputs = with python3.pkgs; [ + impacket + ]; + + installPhase = '' + runHook preInstall + + install -vD $pname.py $out/bin/$pname + + runHook postInstall + ''; + + meta = with lib; { + description = "Tool to get the password policy from a windows machine"; + homepage = "https://github.com/Wh1t3Fox/polenum"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ exploitoverload ]; + mainProgram = "polenum"; + }; +}