mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 01:04:25 +00:00
fail2ban: Make postInstall delete conditional
This commit is contained in:
parent
3df68ced72
commit
8622d7dc11
@ -47,7 +47,10 @@ python3.pkgs.buildPythonApplication rec {
|
||||
in
|
||||
''
|
||||
# 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; {
|
||||
|
Loading…
Reference in New Issue
Block a user