nixpkgs/pkgs/tools/admin/ansible/default.nix

28 lines
829 B
Nix
Raw Normal View History

{ python3Packages, fetchurl }:
2019-11-06 15:42:55 +00:00
rec {
ansible = ansible_2_9;
2019-11-06 15:42:55 +00:00
ansible_2_9 = python3Packages.toPythonApplication python3Packages.ansible;
ansible_2_8 = python3Packages.toPythonApplication (python3Packages.ansible.overridePythonAttrs (old: rec {
2019-11-06 15:42:55 +00:00
pname = "ansible";
version = "2.8.13";
2019-11-06 15:42:55 +00:00
src = fetchurl {
url = "https://releases.ansible.com/ansible/${pname}-${version}.tar.gz";
sha256 = "09a0wa5l2vyy8n2hwvq9ikc77a9xm9k19rnkvcnnkbqwv1fl36zb";
2019-11-06 15:42:55 +00:00
};
}));
2019-05-18 09:59:35 +01:00
ansible_2_7 = python3Packages.toPythonApplication (python3Packages.ansible.overridePythonAttrs (old: rec {
2019-05-18 09:59:35 +01:00
pname = "ansible";
2020-05-18 00:27:40 +01:00
version = "2.7.18";
2019-05-18 09:59:35 +01:00
src = fetchurl {
url = "https://releases.ansible.com/ansible/${pname}-${version}.tar.gz";
2020-05-18 00:27:40 +01:00
sha256 = "0sgshaaqyjq3i035yi5hivmrrwrq05hxrbjrv1w3hfzmvljn41d1";
2019-05-18 09:59:35 +01:00
};
}));
}