From f3ca47561c31a8eeeb24c722d57effe84a686d77 Mon Sep 17 00:00:00 2001 From: Pascal Wittmann Date: Sun, 25 Mar 2018 16:14:48 +0200 Subject: [PATCH] fail2ban: install docs to $out/share/doc fixes issue #28145 --- pkgs/tools/security/fail2ban/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/security/fail2ban/default.nix b/pkgs/tools/security/fail2ban/default.nix index a8de8742dd5c..23061b6962e8 100644 --- a/pkgs/tools/security/fail2ban/default.nix +++ b/pkgs/tools/security/fail2ban/default.nix @@ -26,6 +26,8 @@ pythonPackages.buildPythonApplication { doCheck = false; preInstall = '' + substituteInPlace setup.py --replace /usr/share/doc/ share/doc/ + # see https://github.com/NixOS/nixpkgs/issues/4968 ${python}/bin/${python.executable} setup.py install_data --install-dir=$out --root=$out '';