diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2017-02-03 11:47:38 +0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2017-02-03 11:47:38 +0100 |
commit | adab4cd58b06896be6436f93a76432811deb897e (patch) | |
tree | d4dec437b37d500a136f35ead5290ba15c338ee3 /pkgs/tools/security | |
parent | 787c1add0ba40ba8094b0ed4001de10c7d05c033 (diff) | |
parent | 5b759293e09a062373d4b2843c5bad89d5a47165 (diff) | |
download | nixlib-adab4cd58b06896be6436f93a76432811deb897e.tar nixlib-adab4cd58b06896be6436f93a76432811deb897e.tar.gz nixlib-adab4cd58b06896be6436f93a76432811deb897e.tar.bz2 nixlib-adab4cd58b06896be6436f93a76432811deb897e.tar.lz nixlib-adab4cd58b06896be6436f93a76432811deb897e.tar.xz nixlib-adab4cd58b06896be6436f93a76432811deb897e.tar.zst nixlib-adab4cd58b06896be6436f93a76432811deb897e.zip |
Merge branch 'master' into staging
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r-- | pkgs/tools/security/fail2ban/default.nix | 5 | ||||
-rw-r--r-- | pkgs/tools/security/hologram/default.nix | 18 | ||||
-rw-r--r-- | pkgs/tools/security/hologram/deps.nix | 9 | ||||
-rw-r--r-- | pkgs/tools/security/nmap/default.nix | 30 | ||||
-rw-r--r-- | pkgs/tools/security/sslscan/default.nix | 8 |
5 files changed, 44 insertions, 26 deletions
diff --git a/pkgs/tools/security/fail2ban/default.nix b/pkgs/tools/security/fail2ban/default.nix index 695bfcce3a59..e7a052c90f1c 100644 --- a/pkgs/tools/security/fail2ban/default.nix +++ b/pkgs/tools/security/fail2ban/default.nix @@ -1,16 +1,15 @@ { stdenv, fetchFromGitHub, python, pythonPackages, gamin }: -let version = "0.9.4"; in +let version = "0.9.6"; in pythonPackages.buildPythonApplication { name = "fail2ban-${version}"; - namePrefix = ""; src = fetchFromGitHub { owner = "fail2ban"; repo = "fail2ban"; rev = version; - sha256 = "1m8gqj35kwrn30rqwd488sgakaisz22xa5v9llvz6gwf4f7ps0a9"; + sha256 = "1a75xjjqhn98zd9i51k15vjvcy0ql0gmcv9xf8pbd0bpvblgdah8"; }; propagatedBuildInputs = [ gamin ] diff --git a/pkgs/tools/security/hologram/default.nix b/pkgs/tools/security/hologram/default.nix index e7673cf58422..abdcd5d2d3eb 100644 --- a/pkgs/tools/security/hologram/default.nix +++ b/pkgs/tools/security/hologram/default.nix @@ -2,16 +2,24 @@ buildGoPackage rec { name = "hologram-${version}"; - version = "20160209-${stdenv.lib.strings.substring 0 7 rev}"; - rev = "8d86e3fdcbfd967ba58d8de02f5e8173c101212e"; - - goPackagePath = "github.com/AdRoll/hologram"; + version = "20170130-${stdenv.lib.strings.substring 0 7 rev}"; + rev = "d20d1c30379e7010e8f9c428a5b9e82f54d390e1"; src = fetchgit { inherit rev; url = "https://github.com/AdRoll/hologram"; - sha256 = "0i0p170brdsczfz079mqbc5y7x7mdph04p3wgqsd7xcrddvlkkaf"; + sha256 = "0dg5kfs16kf2gzhpmzsg83qzi2pxgnc9g81lw5zpa6fmzpa9kgsn"; }; + goPackagePath = "github.com/AdRoll/hologram"; + goDeps = ./deps.nix; + + meta = with stdenv.lib; { + homepage = https://github.com/AdRoll/hologram/; + description = "Easy, painless AWS credentials on developer laptops."; + maintainers = with maintainers; [ nand0p ]; + platforms = platforms.all; + license = licenses.asl20; + }; } diff --git a/pkgs/tools/security/hologram/deps.nix b/pkgs/tools/security/hologram/deps.nix index 2c4cdbe84f00..a9b66da2a9c0 100644 --- a/pkgs/tools/security/hologram/deps.nix +++ b/pkgs/tools/security/hologram/deps.nix @@ -98,4 +98,13 @@ sha256 = "179lwaf0hvczl8g4xzkpcpzq25p1b23f7399bx5zl55iin62d8yz"; }; } + { + goPackagePath = "github.com/aws/aws-sdk-go"; + fetch = { + type = "git"; + url = "https://github.com/aws/aws-sdk-go"; + rev = "3f8f870ec9939e32b3372abf74d24e468bcd285d"; + sha256 = "0a4hycs3d87s50z4prf5h6918r0fa2rvrrwlbffs430ilc4y8ghv"; + }; + } ] diff --git a/pkgs/tools/security/nmap/default.nix b/pkgs/tools/security/nmap/default.nix index 9413f9920866..aefa82128ac1 100644 --- a/pkgs/tools/security/nmap/default.nix +++ b/pkgs/tools/security/nmap/default.nix @@ -1,12 +1,13 @@ { stdenv, fetchurl, libpcap, pkgconfig, openssl , graphicalSupport ? false -, gtk2 ? null , libX11 ? null +, gtk2 ? null , withPython ? false # required for the `ndiff` binary -, python2 ? null +, python2Packages ? null +, makeWrapper ? null }: -assert withPython -> python2 != null; +assert withPython -> python2Packages != null; with stdenv.lib; @@ -16,17 +17,13 @@ let # so automatically enable pythonSupport if graphicalSupport is requested. pythonSupport = withPython || graphicalSupport; - pythonEnv = python2.withPackages(ps: with ps; [] - ++ optionals graphicalSupport [ pycairo pygobject2 pygtk pysqlite ] - ); - in stdenv.mkDerivation rec { name = "nmap${optionalString graphicalSupport "-graphical"}-${version}"; - version = "7.31"; + version = "7.40"; src = fetchurl { url = "https://nmap.org/dist/nmap-${version}.tar.bz2"; - sha256 = "0hiqb28950kn4bjsmw0ksfyss7j2qdmgrj3xsjf7073pq01lx7yb"; + sha256 = "121i9mgyc28ra2825akd0ix5qyssv4xc2qlx296mam6hzxgnc54y"; }; patches = ./zenmap.patch; @@ -36,10 +33,17 @@ in stdenv.mkDerivation rec { ++ optional (!graphicalSupport) "--without-zenmap" ; - buildInputs = [ libpcap pkgconfig openssl ] - ++ optional pythonSupport pythonEnv - ++ optionals graphicalSupport [ gtk2 libX11 ] - ; + postInstall = optionalString pythonSupport '' + wrapProgram $out/bin/ndiff --prefix PYTHONPATH : "$(toPythonPath $out)" --prefix PYTHONPATH : "$PYTHONPATH" + '' + optionalString graphicalSupport '' + wrapProgram $out/bin/zenmap --prefix PYTHONPATH : "$(toPythonPath $out)" --prefix PYTHONPATH : "$PYTHONPATH" --prefix PYTHONPATH : $(toPythonPath $pygtk)/gtk-2.0 --prefix PYTHONPATH : $(toPythonPath $pygobject)/gtk-2.0 --prefix PYTHONPATH : $(toPythonPath $pycairo)/gtk-2.0 + ''; + + buildInputs = with python2Packages; [ libpcap pkgconfig openssl ] + ++ optionals pythonSupport [ makeWrapper python ] + ++ optionals graphicalSupport [ + libX11 gtk2 pygtk pysqlite pygobject2 pycairo + ]; meta = { description = "A free and open source utility for network discovery and security auditing"; diff --git a/pkgs/tools/security/sslscan/default.nix b/pkgs/tools/security/sslscan/default.nix index 6b205d845340..90034b641a05 100644 --- a/pkgs/tools/security/sslscan/default.nix +++ b/pkgs/tools/security/sslscan/default.nix @@ -2,20 +2,18 @@ stdenv.mkDerivation rec { name = "sslscan-${version}"; - version = "1.11.7"; + version = "1.11.8"; src = fetchFromGitHub { owner = "rbsec"; repo = "sslscan"; rev = "${version}-rbsec"; - sha256 = "007lf3rxcn9nz6jrki3mavgd9sd2hmm9nzp2g13h0ri51yc3bkp0"; + sha256 = "0vm9r0hmpb6ifix2biqbr7za1rld9yx8hi8vf7j69vcm647z7aas"; }; buildInputs = [ openssl ]; - installFlags = [ - "PREFIX=$(out)" - ]; + installFlags = [ "PREFIX=$(out)" ]; meta = with stdenv.lib; { description = "Tests SSL/TLS services and discover supported cipher suites"; |