Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

55 lines
1.3 KiB
Nix

{
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 ];
mainProgram = "maskprocessor";
};
})