diff options
author | Spencer Whitt <sw@swhitt.me> | 2015-04-05 22:52:47 -0400 |
---|---|---|
committer | Spencer Whitt <sw@swhitt.me> | 2015-04-07 13:48:31 -0400 |
commit | 3885fc5c3bf34f0fd481ec5f9dd608a9d94eff14 (patch) | |
tree | 5509f1c80de848c1dfa46f8c6c07aa68292cf3a0 /pkgs/tools/security/fail2ban | |
parent | 15fd97b74d7463dd82169b2e5f9976951e8cfcad (diff) | |
download | nixpkgs-3885fc5c3bf34f0fd481ec5f9dd608a9d94eff14.tar nixpkgs-3885fc5c3bf34f0fd481ec5f9dd608a9d94eff14.tar.gz nixpkgs-3885fc5c3bf34f0fd481ec5f9dd608a9d94eff14.tar.bz2 nixpkgs-3885fc5c3bf34f0fd481ec5f9dd608a9d94eff14.tar.lz nixpkgs-3885fc5c3bf34f0fd481ec5f9dd608a9d94eff14.tar.xz nixpkgs-3885fc5c3bf34f0fd481ec5f9dd608a9d94eff14.tar.zst nixpkgs-3885fc5c3bf34f0fd481ec5f9dd608a9d94eff14.zip |
fail2ban: include systemd on Linux only
Diffstat (limited to 'pkgs/tools/security/fail2ban')
-rw-r--r-- | pkgs/tools/security/fail2ban/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/tools/security/fail2ban/default.nix b/pkgs/tools/security/fail2ban/default.nix index b77f1694772..03e193dacc7 100644 --- a/pkgs/tools/security/fail2ban/default.nix +++ b/pkgs/tools/security/fail2ban/default.nix @@ -14,7 +14,8 @@ pythonPackages.buildPythonPackage { buildInputs = [ unzip ]; - pythonPath = [ systemd python.modules.sqlite3 gamin ]; + pythonPath = (stdenv.lib.optional stdenv.isLinux systemd) + ++ [ python.modules.sqlite3 gamin ]; preConfigure = '' substituteInPlace setup.cfg \ |