ansible: add package
This commit is contained in:
parent
e5eed8f664
commit
0ebc2e75f1
27
pkgs/tools/system/ansible/default.nix
Normal file
27
pkgs/tools/system/ansible/default.nix
Normal 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";
|
||||
};
|
||||
}
|
|
@ -11046,5 +11046,7 @@ let
|
|||
# Attributes for backward compatibility.
|
||||
adobeReader = adobe-reader;
|
||||
|
||||
ansible = callPackage ../tools/system/ansible { };
|
||||
|
||||
|
||||
}; in self; in pkgs
|
||||
|
|
Loading…
Reference in a new issue