Files
nixpkgs/pkgs/by-name/ha/hashrat/package.nix
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

44 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hashrat";
version = "1.25";
src = fetchFromGitHub {
owner = "ColumPaget";
repo = "Hashrat";
tag = "v${finalAttrs.version}";
hash = "sha256-nGaOVvy8caySohCGyGdnxXsv2DuqFPRi4JJLlZy+q8o=";
};
configureFlags = [ "--enable-xattr" ];
makeFlags = [ "PREFIX=$(out)" ];
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Command-line hash-generation utility";
mainProgram = "hashrat";
longDescription = ''
Hashing tool supporting md5,sha1,sha256,sha512,whirlpool,jh and hmac versions of these.
Includes recursive file hashing and other features.
'';
homepage = "https://github.com/ColumPaget/Hashrat";
changelog = "https://github.com/ColumPaget/Hashrat/blob/v${finalAttrs.version}/CHANGELOG";
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ zendo ];
};
})