summary refs log tree commit diff
path: root/pkgs/tools/security/hashcat-utils/default.nix
blob: 50508cfc4941d010519db731bd4c76450a65b5a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "hashcat-utils";
  version = "1.9";

  src = fetchFromGitHub {
    owner = "hashcat";
    repo = pname;
    rev = "v${version}";
    sha256 = "0wgc6wv7i6cs95rgzzx3zqm14xxbjyajvcqylz8w97d8kk4x4wjr";
  };

  sourceRoot = "source/src";

  installPhase = ''
    runHook preInstall
    install -Dm0555 *.bin -t $out/bin
    install -Dm0555 *.pl -t $out/bin
    runHook postInstall
  '';

  meta = with stdenv.lib; {
    description = "Small utilities that are useful in advanced password cracking";
    homepage = https://github.com/hashcat/hashcat-utils;
    license = licenses.mit;
    platforms = platforms.linux;
    maintainers = with maintainers; [ fadenb ];
  };
}