summary refs log tree commit diff
path: root/pkgs/tools/system/ansible/default.nix
diff options
context:
space:
mode:
authorJussi Maki <jussi.maki@gmail.com>2014-05-21 09:36:29 +0200
committerJussi Maki <jussi.maki@gmail.com>2014-05-21 09:36:29 +0200
commit0ebc2e75f130048e6e4aad99cce5ff467412f3cf (patch)
tree4bc27fc098833ea00e1982bcc0f7762896b3fd47 /pkgs/tools/system/ansible/default.nix
parente5eed8f664891e7337c1c70a654930617da4247b (diff)
downloadnixlib-0ebc2e75f130048e6e4aad99cce5ff467412f3cf.tar
nixlib-0ebc2e75f130048e6e4aad99cce5ff467412f3cf.tar.gz
nixlib-0ebc2e75f130048e6e4aad99cce5ff467412f3cf.tar.bz2
nixlib-0ebc2e75f130048e6e4aad99cce5ff467412f3cf.tar.lz
nixlib-0ebc2e75f130048e6e4aad99cce5ff467412f3cf.tar.xz
nixlib-0ebc2e75f130048e6e4aad99cce5ff467412f3cf.tar.zst
nixlib-0ebc2e75f130048e6e4aad99cce5ff467412f3cf.zip
ansible: add package
Diffstat (limited to 'pkgs/tools/system/ansible/default.nix')
-rw-r--r--pkgs/tools/system/ansible/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/system/ansible/default.nix b/pkgs/tools/system/ansible/default.nix
new file mode 100644
index 000000000000..4d12801b87ad
--- /dev/null
+++ b/pkgs/tools/system/ansible/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, pythonPackages, fetchurl, python }:
+
+pythonPackages.buildPythonPackage rec {
+  name = "ansible-1.6.1";
+  namePrefix = "";
+
+  src = fetchurl {
+    url = "https://github.com/ansible/ansible/archive/v1.6.1.tar.gz";
+    sha256 = "1iz1q2h0zll4qsxk0pndc59knasw663kv53sm21q57qz7lf30q9z";
+  };
+
+  prePatch = ''
+    sed -i "s,\/usr\/share\/ansible\/,$out/share/ansible," lib/ansible/constants.py 
+  '';
+
+  doCheck = false;
+
+  pythonPath = with pythonPackages; [
+    paramiko jinja2 pyyaml httplib2
+  ];
+
+  meta = {
+    homepage = "http://www.ansible.com";
+    description = "Ansible simple automation tool";
+    license = "GPLv3";
+  };
+}