From badc84b69e4b3028466c0f8189f23ae51d92e7f6 Mon Sep 17 00:00:00 2001 From: zendo Date: Sun, 30 Oct 2022 18:59:38 +0800 Subject: [PATCH] hashrat: init at 1.15 --- pkgs/tools/security/hashrat/default.nix | 32 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/tools/security/hashrat/default.nix diff --git a/pkgs/tools/security/hashrat/default.nix b/pkgs/tools/security/hashrat/default.nix new file mode 100644 index 00000000000..7923021f835 --- /dev/null +++ b/pkgs/tools/security/hashrat/default.nix @@ -0,0 +1,32 @@ +{ lib +, stdenv +, fetchFromGitHub +}: + +stdenv.mkDerivation rec { + pname = "hashrat"; + version = "1.15"; + + src = fetchFromGitHub { + owner = "ColumPaget"; + repo = "Hashrat"; + rev = "v${version}"; + hash = "sha256-+3IPCJS++7CE0ZrJb62LCRrAn2J4uCF3a1oOzDoOW0w="; + }; + + configureFlags = [ "--enable-xattr" ]; + + makeFlags = [ "PREFIX=$(out)" ]; + + meta = with lib; { + description = "Command-line hash-generation utility"; + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 97a85141401..5025e2f87c3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7624,6 +7624,8 @@ with pkgs; hashcat-utils = callPackage ../tools/security/hashcat-utils { }; + hashrat = callPackage ../tools/security/hashrat { }; + hash_extender = callPackage ../tools/security/hash_extender { openssl = openssl_1_1; };