From d6a927c40dad203f6605cdffa46771d9770067fe Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Mon, 6 Jan 2025 00:20:02 -0500 Subject: [PATCH] maskprocessor: init at 0.73 --- pkgs/by-name/ma/maskprocessor/package.nix | 41 +++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/ma/maskprocessor/package.nix diff --git a/pkgs/by-name/ma/maskprocessor/package.nix b/pkgs/by-name/ma/maskprocessor/package.nix new file mode 100644 index 00000000000000..adb0e390e9bed6 --- /dev/null +++ b/pkgs/by-name/ma/maskprocessor/package.nix @@ -0,0 +1,41 @@ +{ + lib, + stdenv, + fetchFromGitHub, +}: + +stdenv.mkDerivation rec { + pname = "maskprocessor"; + version = "0.73"; + + src = fetchFromGitHub { + owner = "hashcat"; + repo = pname; + tag = "v${version}"; + hash = "sha256-LVtMz5y0PbKKuc92W5xW0C84avigR7vS1XL/aXkUYe8="; + }; + + buildPhase = '' + cd src/ + make CC=cc + ''; + + checkPhase = '' + $out/bin/mp --help > /dev/null + ''; + + installPhase = '' + mkdir -p $out/bin + cp mp64.bin $out/bin/mp + ''; + + meta = with lib; { + homepage = "https://github.com/hashcat/maskprocessor"; + description = "High-Performance word generator with a per-position configureable charset."; + license = licenses.mit; + platforms = platforms.unix; + changelog = "https://github.com/hashcat/maskprocessor/releases/tag/v${version}"; + maintainers = with maintainers; [ ethancedwards8 ]; + mainProgram = "mp"; + }; +}