Merge remote-tracking branch 'upstream/master' into hardened-stdenv

This commit is contained in:
Robin Gloster
2016-08-12 09:46:53 +00:00
372 changed files with 7520 additions and 3777 deletions
+27
View File
@@ -0,0 +1,27 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "kbfs-2016-08-02-git";
version = "1.0.16";
goPackagePath = "github.com/keybase/kbfs";
subPackages = [ "kbfsfuse" ];
dontRenameImports = true;
src = fetchFromGitHub {
owner = "keybase";
repo = "kbfs";
rev = "a8f0714536d15668e0f561ec4d3324762c8cf030";
sha256 = "0m4k55akd8cv5k8mfpm3rb3fz13z31l49pml7mgviv0hi3mnisqd";
};
buildFlags = [ "-tags production" ];
meta = with stdenv.lib; {
homepage = https://www.keybase.io;
description = "The Keybase FS FUSE driver";
platforms = platforms.linux;
maintainers = with maintainers; [ bennofs ];
};
}
+3 -3
View File
@@ -13,11 +13,11 @@
with stdenv.lib;
stdenv.mkDerivation rec {
name = "nmap${optionalString graphicalSupport "-graphical"}-${version}";
version = "7.01";
version = "7.12";
src = fetchurl {
url = "http://nmap.org/dist/nmap-${version}.tar.bz2";
sha256 = "01bpc820fmjl1vd08a3j9fpa84psaa7c3cxc8wpzabms8ckcs7yg";
sha256 = "014vagh9ak10hidwzp9s6g30y5h5fhsh8wykcnc1hnn9hwm0ipv3";
};
patches = ./zenmap.patch;
@@ -40,6 +40,6 @@ stdenv.mkDerivation rec {
homepage = http://www.nmap.org;
license = licenses.gpl2;
platforms = platforms.all;
maintainers = with maintainers; [ mornfall thoughtpolice ];
maintainers = with maintainers; [ mornfall thoughtpolice fpletz ];
};
}
+23 -11
View File
@@ -1,29 +1,41 @@
{ stdenv, fetchurl, pkgconfig, openssl, libidn, ncurses, pcre, libssh, postgresql92 }:
{ stdenv, lib, fetchurl, zlib, openssl, ncurses, libidn, pcre, libssh, libmysql, postgresql
, withGUI ? false, makeWrapper, pkgconfig, gtk2 }:
with stdenv.lib;
let
makeDirs = output: subDir: pkgs: lib.concatStringsSep " " (map (path: lib.getOutput output path + "/" + subDir) pkgs);
stdenv.mkDerivation rec {
in stdenv.mkDerivation rec {
name = "thc-hydra-${version}";
version = "7.5";
version = "8.2";
src = fetchurl {
url = "http://www.thc.org/releases/hydra-${version}.tar.gz";
sha256 = "1dhavbn2mcm6c2c1qw29ipbpmczax3vhhlxzwn49c8cq471yg4vj";
sha256 = "1i2a5glmrxdjr80gfppx6wgakflcpj3ksgng212fjzhxr9m4k24y";
};
preConfigure = ''
substituteInPlace configure --replace "\$LIBDIRS" "${openssl.out}/lib ${pcre.out}/lib ${libssh.out}/lib ${postgresql92.lib}/lib"
substituteInPlace configure --replace "\$INCDIRS" "${openssl.dev}/include ${pcre.dev}/include ${libssh.dev}/include ${postgresql92}/include"
substituteInPlace configure \
--replace "\$LIBDIRS" "${makeDirs "lib" "lib" buildInputs}" \
--replace "\$INCDIRS" "${makeDirs "dev" "include" buildInputs}" \
--replace "/usr/include/math.h" "${lib.getDev stdenv.cc.libc}/include/math.h" \
--replace "libcurses.so" "libncurses.so" \
--replace "-lcurses" "-lncurses"
'';
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl libidn ncurses pcre libssh ];
nativeBuildInputs = lib.optionals withGUI [ pkgconfig makeWrapper ];
buildInputs = [ zlib openssl ncurses libidn pcre libssh libmysql postgresql ]
++ lib.optional withGUI gtk2;
meta = {
postInstall = lib.optionalString withGUI ''
wrapProgram $out/bin/xhydra \
--add-flags --hydra-path --add-flags "$out/bin/hydra"
'';
meta = with stdenv.lib; {
description = "A very fast network logon cracker which support many different services";
license = licenses.agpl3;
homepage = https://www.thc.org/thc-hydra/;
maintainers = with maintainers; [offline];
platforms = platforms.unix;
platforms = platforms.linux;
};
}