diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2023-02-04 12:10:05 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-04 12:10:05 +0000 |
commit | a13e71c8e6e95c2c8d53302a13b92727caf3ab16 (patch) | |
tree | a7bfc4796a38de5d8fdcd3eafda04dcd24534746 /pkgs/tools | |
parent | bc0944c06f75a65817a0640bdb67f3b1b4bb0af2 (diff) | |
parent | bf22adffaba1f2b4952c2c39ddefecf50214e4c0 (diff) |
Merge pull request #210300 from foo-dogsquared/add-fail2ban-man-pages
fail2ban: add manpages to output
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/security/fail2ban/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/tools/security/fail2ban/default.nix b/pkgs/tools/security/fail2ban/default.nix index 459f9f12c1ea..daa0e8471158 100644 --- a/pkgs/tools/security/fail2ban/default.nix +++ b/pkgs/tools/security/fail2ban/default.nix @@ -1,6 +1,7 @@ { lib, stdenv, fetchFromGitHub , python3 , fetchpatch +, installShellFiles }: python3.pkgs.buildPythonApplication rec { @@ -14,6 +15,10 @@ python3.pkgs.buildPythonApplication rec { sha256 = "q4U9iWCa1zg8sA+6pPNejt6v/41WGIKN5wITJCrCqQE="; }; + outputs = [ "out" "man" ]; + + nativeBuildInputs = [ installShellFiles ]; + pythonPath = with python3.pkgs; lib.optionals stdenv.isLinux [ systemd @@ -71,6 +76,8 @@ python3.pkgs.buildPythonApplication rec { '' # see https://github.com/NixOS/nixpkgs/issues/4968 rm -r "${sitePackages}/etc" + + installManPage man/*.[1-9] '' + lib.optionalString stdenv.isLinux '' # see https://github.com/NixOS/nixpkgs/issues/4968 rm -r "${sitePackages}/usr" |