mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
Fix old ansible versions
This commit is contained in:
parent
f328fbcb4d
commit
77b4e6835c
1 changed files with 15 additions and 3 deletions
|
@ -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'';
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue