2020-08-17 12:35:58 +01:00
|
|
|
{ python3Packages, fetchurl, fetchFromGitHub }:
|
2018-05-10 07:09:15 +01:00
|
|
|
|
2019-11-06 15:42:55 +00:00
|
|
|
rec {
|
2020-08-17 12:35:58 +01:00
|
|
|
ansible = ansible_2_10;
|
|
|
|
|
|
|
|
# The python module stays at v2.9.x until the related package set has caught up. Therefore v2.10 gets an override
|
|
|
|
# for now.
|
|
|
|
ansible_2_10 = python3Packages.toPythonApplication (python3Packages.ansible.overridePythonAttrs (old: rec {
|
|
|
|
pname = "ansible";
|
|
|
|
version = "2.10.0";
|
|
|
|
|
|
|
|
# TODO: migrate to fetchurl, when release becomes available on releases.ansible.com
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0k9rs5ajx0chaq0xr1cj4x7fr5n8kd4y856miss6k01iv2m7yx42";
|
|
|
|
};
|
|
|
|
}));
|
2019-02-24 21:52:48 +00:00
|
|
|
|
2019-11-06 15:42:55 +00:00
|
|
|
ansible_2_9 = python3Packages.toPythonApplication python3Packages.ansible;
|
|
|
|
|
2020-03-22 07:09:42 +00:00
|
|
|
ansible_2_8 = python3Packages.toPythonApplication (python3Packages.ansible.overridePythonAttrs (old: rec {
|
2019-11-06 15:42:55 +00:00
|
|
|
pname = "ansible";
|
2020-08-11 16:50:47 +01:00
|
|
|
version = "2.8.14";
|
2019-11-06 15:42:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://releases.ansible.com/ansible/${pname}-${version}.tar.gz";
|
2020-08-11 16:50:47 +01:00
|
|
|
sha256 = "19ga0c9qs2b216qjg5k2yknz8ksjn8qskicqspg2d4b8x2nr1294";
|
2019-11-06 15:42:55 +00:00
|
|
|
};
|
|
|
|
}));
|
2018-05-10 07:09:15 +01:00
|
|
|
}
|