Skip to content

Commit

Permalink
maskprocessor: init at 0.73
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Carter Edwards <[email protected]>
  • Loading branch information
ethancedwards8 committed Jan 12, 2025
1 parent 8ab83a2 commit 220c8b2
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions pkgs/by-name/ma/maskprocessor/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
lib,
stdenv,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "maskprocessor";
version = "0.73";

src = fetchFromGitHub {
owner = "hashcat";
repo = "maskprocessor";
tag = "v${finalAttrs.version}";
hash = "sha256-LVtMz5y0PbKKuc92W5xW0C84avigR7vS1XL/aXkUYe8=";
};

# upstream Makefile is terrible, this simplifies everything.
buildPhase = ''
runHook preBuild
$CC -o maskprocessor src/mp.c -W -Wall -std=c99 -O2 -s -DLINUX
runHook postBuild
'';

installPhase = ''
runHook preInstall
install -Dm544 -t $out/bin maskprocessor
runHook postInstall
'';

nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = [ "--version" ];
doInstallCheck = true;

passthru = {
updateScript = nix-update-script { };
};

meta = {
homepage = "https://github.com/hashcat/maskprocessor";
description = "High-Performance word generator with a per-position configureable charset";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
changelog = "https://github.com/hashcat/maskprocessor/releases/tag/v${finalAttrs.version}";
maintainers = with lib.maintainers; [ ethancedwards8 ];
};
})

0 comments on commit 220c8b2

Please sign in to comment.