fail2ban: Make postInstall delete conditional

This commit is contained in:
Brian Olsen 2021-11-10 16:51:55 +01:00
parent 3df68ced72
commit 8622d7dc11
No known key found for this signature in database
GPG key ID: 029DD8E8B95882E8

View file

@ -47,7 +47,10 @@ python3.pkgs.buildPythonApplication rec {
in in
'' ''
# see https://github.com/NixOS/nixpkgs/issues/4968 # see https://github.com/NixOS/nixpkgs/issues/4968
rm -rf ${sitePackages}/etc ${sitePackages}/usr rm -r "${sitePackages}/etc"
'' + lib.optionalString stdenv.isLinux ''
# see https://github.com/NixOS/nixpkgs/issues/4968
rm -r "${sitePackages}/usr"
''; '';
meta = with lib; { meta = with lib; {