nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 30 lines 733 B view raw
1{ stdenv, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 pname = "hashcat-utils"; 5 version = "1.9"; 6 7 src = fetchFromGitHub { 8 owner = "hashcat"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "0wgc6wv7i6cs95rgzzx3zqm14xxbjyajvcqylz8w97d8kk4x4wjr"; 12 }; 13 14 sourceRoot = "source/src"; 15 16 installPhase = '' 17 runHook preInstall 18 install -Dm0555 *.bin -t $out/bin 19 install -Dm0555 *.pl -t $out/bin 20 runHook postInstall 21 ''; 22 23 meta = with stdenv.lib; { 24 description = "Small utilities that are useful in advanced password cracking"; 25 homepage = https://github.com/hashcat/hashcat-utils; 26 license = licenses.mit; 27 platforms = platforms.linux; 28 maintainers = with maintainers; [ fadenb ]; 29 }; 30}