diff --git a/overrides/default.nix b/overrides/default.nix index f914573..c99a0b2 100644 --- a/overrides/default.nix +++ b/overrides/default.nix @@ -130,9 +130,21 @@ lib.composeManyExtensions [ self.dopy self.ncclient ]; - } // lib.optionalAttrs (lib.versionOlder old.version "5.0") { - prePatch = pkgs.python.pkgs.ansible.prePatch or ""; - postInstall = pkgs.python.pkgs.ansible.postInstall or ""; + } + ); + + ansible-base = super.ansible-base.overridePythonAttrs ( + old: + { + prePatch = ''sed -i "s/\[python, /[/" lib/ansible/executor/task_executor.py''; + postInstall = '' + for m in docs/man/man1/*; do + install -vD $m -t $out/share/man/man1 + done + ''; + } + // lib.optionalAttrs (lib.versionOlder old.version "2.4") { + prePatch = ''sed -i "s,/usr/,$out," lib/ansible/constants.py''; } );