summary refs log tree commit diff
path: root/pkgs/tools/admin/ansible
diff options
context:
space:
mode:
authorPeter Romfeld <peter.romfeld.hk@gmail.com>2017-10-18 05:03:43 +0800
committerJörg Thalheim <Mic92@users.noreply.github.com>2017-10-17 22:03:43 +0100
commit29f9ca40cb17b30ef6ebd974a4e4e1a7a567623e (patch)
tree702ceac7360206962dee82ec49e40c3c298dca26 /pkgs/tools/admin/ansible
parent05dc4302224ffee70798ac4b7826e0ba4f92863f (diff)
downloadnixlib-29f9ca40cb17b30ef6ebd974a4e4e1a7a567623e.tar
nixlib-29f9ca40cb17b30ef6ebd974a4e4e1a7a567623e.tar.gz
nixlib-29f9ca40cb17b30ef6ebd974a4e4e1a7a567623e.tar.bz2
nixlib-29f9ca40cb17b30ef6ebd974a4e4e1a7a567623e.tar.lz
nixlib-29f9ca40cb17b30ef6ebd974a4e4e1a7a567623e.tar.xz
nixlib-29f9ca40cb17b30ef6ebd974a4e4e1a7a567623e.tar.zst
nixlib-29f9ca40cb17b30ef6ebd974a4e4e1a7a567623e.zip
ansible_2_4: init at 2.4.0.0 (#30073)
Diffstat (limited to 'pkgs/tools/admin/ansible')
-rw-r--r--pkgs/tools/admin/ansible/2.4.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/tools/admin/ansible/2.4.nix b/pkgs/tools/admin/ansible/2.4.nix
new file mode 100644
index 000000000000..dd9c12c831c9
--- /dev/null
+++ b/pkgs/tools/admin/ansible/2.4.nix
@@ -0,0 +1,40 @@
+{ stdenv
+, fetchurl
+, pythonPackages
+, windowsSupport ? false
+}:
+
+pythonPackages.buildPythonPackage rec {
+  pname = "ansible";
+  version = "2.4.0.0";
+  name = "${pname}-${version}";
+
+  src = fetchurl {
+    url = "http://releases.ansible.com/ansible/${name}.tar.gz";
+    sha256 = "0xkwnx817rygb1922gncv9ivgvb7hjg8g53r39hfdm3jgzp6y9qs";
+  };
+
+  prePatch = ''
+    sed -i "s,/usr/,$out," lib/ansible/constants.py
+  '';
+
+  doCheck = false;
+  dontStrip = true;
+  dontPatchELF = true;
+  dontPatchShebangs = false;
+
+  propagatedBuildInputs = with pythonPackages; [
+    pycrypto paramiko jinja2 pyyaml httplib2 boto six netaddr dns
+  ] ++ stdenv.lib.optional windowsSupport pywinrm;
+
+  meta = with stdenv.lib; {
+    homepage = http://www.ansible.com;
+    description = "A simple automation tool";
+    license = with licenses; [ gpl3 ];
+    maintainers = with maintainers; [
+      jgeerds
+      joamaki
+    ];
+    platforms = with platforms; linux ++ darwin;
+  };
+}