From 5b6295c9694135a177535e562ae1311470ddd319 Mon Sep 17 00:00:00 2001 From: Izorkin Date: Thu, 2 Jan 2020 12:39:50 +0300 Subject: [PATCH] fail2ban: fix work with python3 --- pkgs/tools/security/fail2ban/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/tools/security/fail2ban/default.nix b/pkgs/tools/security/fail2ban/default.nix index 1280b4bd3f11..5ea918542828 100644 --- a/pkgs/tools/security/fail2ban/default.nix +++ b/pkgs/tools/security/fail2ban/default.nix @@ -47,6 +47,10 @@ python3.pkgs.buildPythonApplication { ${python3.interpreter} setup.py install_data --install-dir=$out --root=$out ''; + postPatch = '' + ${stdenv.shell} ./fail2ban-2to3 + ''; + postInstall = let sitePackages = "$out/${python3.sitePackages}"; in ''