git.iko.soy/typeable/nixpkgs
on master help sign in
ansible_2_4: init at 2.4.0.0 (#30073)
commit29f9ca40cb17b30ef6ebd974a4e4e1a7a567623e authorPeter Romfeld <peter.romfeld.hk@gmail.com> dateWed 18 Oct 2017, 05:03 (9 years ago) parent05dc430
2 files changed+43−2
pkgs/tools/admin/ansible/2.4.nix+40 pkgs/top-level/all-packages.nix+3−2
pkgs/tools/admin/ansible/2.4.nixnew file+40
@@ -0,0 +1,40 @@
1+{ stdenv
2+, fetchurl
3+, pythonPackages
4+, windowsSupport ? false
5+}:
6+
7+pythonPackages.buildPythonPackage rec {
8+ pname = "ansible";
9+ version = "2.4.0.0";
10+ name = "${pname}-${version}";
11+
12+ src = fetchurl {
13+ url = "http://releases.ansible.com/ansible/${name}.tar.gz";
14+ sha256 = "0xkwnx817rygb1922gncv9ivgvb7hjg8g53r39hfdm3jgzp6y9qs";
15+ };
16+
17+ prePatch = ''
18+ sed -i "s,/usr/,$out," lib/ansible/constants.py
19+ '';
20+
21+ doCheck = false;
22+ dontStrip = true;
23+ dontPatchELF = true;
24+ dontPatchShebangs = false;
25+
26+ propagatedBuildInputs = with pythonPackages; [
27+ pycrypto paramiko jinja2 pyyaml httplib2 boto six netaddr dns
28+ ] ++ stdenv.lib.optional windowsSupport pywinrm;
29+
30+ meta = with stdenv.lib; {
31+ homepage = http://www.ansible.com;
32+ description = "A simple automation tool";
33+ license = with licenses; [ gpl3 ];
34+ maintainers = with maintainers; [
35+ jgeerds
36+ joamaki
37+ ];
38+ platforms = with platforms; linux ++ darwin;
39+ };
40+}
pkgs/top-level/all-packages.nix+3−2
@@ -6859,8 +6859,9 @@ with pkgs;
68596859 ansible_2_1 = callPackage ../tools/admin/ansible/2.1.nix {};
68606860 ansible_2_2 = callPackage ../tools/admin/ansible/2.2.nix {};
68616861 ansible_2_3 = callPackage ../tools/admin/ansible/2.3.nix {};
6862− ansible = ansible_2_3;
6863− ansible2 = ansible_2_3;
6862+ ansible_2_4 = callPackage ../tools/admin/ansible/2.4.nix {};
6863+ ansible = ansible_2_4;
6864+ ansible2 = ansible_2_4;
68646865
68656866 antlr = callPackage ../development/tools/parsing/antlr/2.7.7.nix { };
68666867