uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
50
pkgs/tools/security/thc-hydra/default.nix
Normal file
50
pkgs/tools/security/thc-hydra/default.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{ stdenv, lib, fetchFromGitHub, zlib, openssl, ncurses, libidn, pcre, libssh, libmysqlclient, postgresql
|
||||
, withGUI ? false, makeWrapper, pkg-config, gtk2 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "thc-hydra";
|
||||
version = "9.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vanhauser-thc";
|
||||
repo = "thc-hydra";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-SzbaU52IXw5+ztN/GKD6Ki6/cx2icoZEzLHBu/J8sk0=";
|
||||
};
|
||||
|
||||
postPatch = let
|
||||
makeDirs = output: subDir: lib.concatStringsSep " " (map (path: lib.getOutput output path + "/" + subDir) buildInputs);
|
||||
in ''
|
||||
substituteInPlace configure \
|
||||
--replace '$LIBDIRS' "${makeDirs "lib" "lib"}" \
|
||||
--replace '$INCDIRS' "${makeDirs "dev" "include"}" \
|
||||
--replace "/usr/include/math.h" "${lib.getDev stdenv.cc.libc}/include/math.h" \
|
||||
--replace "libcurses.so" "libncurses.so" \
|
||||
--replace "-lcurses" "-lncurses"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = lib.optionals withGUI [ pkg-config makeWrapper ];
|
||||
|
||||
buildInputs = [
|
||||
zlib openssl ncurses libidn pcre libssh libmysqlclient postgresql
|
||||
] ++ lib.optional withGUI gtk2;
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
DATADIR = "/share/${pname}";
|
||||
|
||||
postInstall = lib.optionalString withGUI ''
|
||||
wrapProgram $out/bin/xhydra \
|
||||
--add-flags --hydra-path --add-flags "$out/bin/hydra"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A very fast network logon cracker which support many different services";
|
||||
homepage = "https://github.com/vanhauser-thc/thc-hydra"; # https://www.thc.org/
|
||||
changelog = "https://github.com/vanhauser-thc/thc-hydra/raw/v${version}/CHANGES";
|
||||
license = licenses.agpl3Plus;
|
||||
maintainers = with maintainers; [ offline ];
|
||||
platforms = platforms.unix;
|
||||
badPlatforms = platforms.darwin; # fails to build since v9.3
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue