summary refs log tree commit diff
path: root/pkgs/tools/security
diff options
context:
space:
mode:
authorJoel Taylor <me@joelt.io>2014-08-01 18:11:09 -0700
committerRok Garbas <rok@garbas.si>2014-08-08 00:10:19 +0200
commitd8cca3d624399316f7abefc9e9d6747d2e32bed2 (patch)
tree0c92ed1932f4f9523a1541490c917e99e01943ca /pkgs/tools/security
parentb18d0eee051229a6d0c8ee37efc7dce3852cb7ed (diff)
downloadnixlib-d8cca3d624399316f7abefc9e9d6747d2e32bed2.tar
nixlib-d8cca3d624399316f7abefc9e9d6747d2e32bed2.tar.gz
nixlib-d8cca3d624399316f7abefc9e9d6747d2e32bed2.tar.bz2
nixlib-d8cca3d624399316f7abefc9e9d6747d2e32bed2.tar.lz
nixlib-d8cca3d624399316f7abefc9e9d6747d2e32bed2.tar.xz
nixlib-d8cca3d624399316f7abefc9e9d6747d2e32bed2.tar.zst
nixlib-d8cca3d624399316f7abefc9e9d6747d2e32bed2.zip
fail2ban: systemd support
- upgrade fail2ban to 0.9
- override systemd to enable python support and include sqlite3 module
- make fail2ban enablable
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r--pkgs/tools/security/fail2ban/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/tools/security/fail2ban/default.nix b/pkgs/tools/security/fail2ban/default.nix
index 8d6a6241ad3f..6b5c69c3d2e2 100644
--- a/pkgs/tools/security/fail2ban/default.nix
+++ b/pkgs/tools/security/fail2ban/default.nix
@@ -1,6 +1,6 @@
-{ stdenv, fetchurl, pythonPackages, unzip, gamin }:
+{ stdenv, fetchurl, python, pythonPackages, unzip, systemd, gamin }:
 
-let version = "0.8.13"; in
+let version = "0.9"; in
 
 pythonPackages.buildPythonPackage {
   name = "fail2ban-${version}";
@@ -9,12 +9,12 @@ pythonPackages.buildPythonPackage {
   src = fetchurl {
     url    = "https://github.com/fail2ban/fail2ban/zipball/${version}";
     name   = "fail2ban-${version}.zip";
-    sha256 = "0c63i5jsn2n6hv6fb6q922ksxfpppah9415vpydiv0vpf23pq0cb";
+    sha256 = "0dawl0vvdvpnkg1hc4l0c8sj8ikcr2l48d6khfx0174nq8yfcg93";
   };
 
   buildInputs = [ unzip ];
 
-  pythonPath = [ gamin ];
+  pythonPath = [ systemd python.modules.sqlite3 gamin ];
 
   preConfigure = ''
     substituteInPlace setup.cfg \