lol
1{ stdenv, fetchurl, openssl, libidn, ncurses, pcre, libssh, postgresql92 }:
2
3with stdenv.lib;
4
5stdenv.mkDerivation rec {
6 name = "thc-hydra-${version}";
7 version = "7.5";
8
9 src = fetchurl {
10 url = "http://www.thc.org/releases/hydra-${version}.tar.gz";
11 sha256 = "1dhavbn2mcm6c2c1qw29ipbpmczax3vhhlxzwn49c8cq471yg4vj";
12 };
13
14 preConfigure = ''
15 substituteInPlace configure --replace "\$LIBDIRS" "${openssl}/lib ${pcre}/lib ${libssh}/lib ${postgresql92}/lib"
16 substituteInPlace configure --replace "\$INCDIRS" "${openssl}/include ${pcre}/include ${libssh}/include ${postgresql92}/include"
17 '';
18
19 buildInputs = [ openssl libidn ncurses pcre libssh ];
20
21 meta = {
22 description = "A very fast network logon cracker which support many different services";
23 license = licenses.agpl3;
24 homepage = https://www.thc.org/thc-hydra/;
25 maintainers = with maintainers; [offline];
26 platforms = with platforms; unix;
27 };
28}