ansible: add package

This commit is contained in:
Jussi Maki 2014-05-21 09:36:29 +02:00
parent e5eed8f664
commit 0ebc2e75f1
2 changed files with 29 additions and 0 deletions

View file

@ -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";
};
}

View file

@ -11046,5 +11046,7 @@ let
# Attributes for backward compatibility.
adobeReader = adobe-reader;
ansible = callPackage ../tools/system/ansible { };
}; in self; in pkgs