nixpkgs/pkgs/by-name/ha/hashrat/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.2 KiB
Nix
Raw Normal View History

2022-10-30 10:59:38 +00:00
{ lib
, stdenv
, fetchFromGitHub
2024-10-28 13:49:49 +00:00
, fetchpatch
2022-10-30 10:59:38 +00:00
}:
stdenv.mkDerivation rec {
pname = "hashrat";
2024-07-18 13:44:05 +00:00
version = "1.22";
2022-10-30 10:59:38 +00:00
src = fetchFromGitHub {
owner = "ColumPaget";
repo = "Hashrat";
rev = "v${version}";
2024-07-18 13:44:05 +00:00
hash = "sha256-mjjK315OUUFVdUY+zcCvm7yeo7XxourR1sghWbeFT7c=";
2022-10-30 10:59:38 +00:00
};
2024-10-28 13:49:49 +00:00
patches = [
# fix cross compilation by replacing hardcoded ar with AC_PROG_AR
# https://github.com/ColumPaget/Hashrat/pull/27
(fetchpatch {
url = "https://github.com/ColumPaget/Hashrat/commit/a82615e02021245850a1703e613055da2520c8fd.patch";
hash = "sha256-tjyhM2ahZBRoRP8WjyQhrI3l20oaqMtfYmOeAZVEZqU=";
})
];
2022-10-30 10:59:38 +00:00
configureFlags = [ "--enable-xattr" ];
makeFlags = [ "PREFIX=$(out)" ];
meta = with lib; {
description = "Command-line hash-generation utility";
mainProgram = "hashrat";
2022-10-30 10:59:38 +00:00
longDescription = ''
Hashing tool supporting md5,sha1,sha256,sha512,whirlpool,jh and hmac versions of these.
Includes recursive file hashing and other features.
'';
homepage = "http://www.cjpaget.co.uk/Code/Hashrat";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ zendo ];
};
}