2014-05-21 13:46:37 +01:00
|
|
|
{ stdenv, fetchurl, pythonPackages, python }:
|
2014-05-21 08:36:29 +01:00
|
|
|
|
|
|
|
pythonPackages.buildPythonPackage rec {
|
2014-05-21 13:46:37 +01:00
|
|
|
version = "1.6.1";
|
|
|
|
name = "ansible-${version}";
|
2014-05-21 08:36:29 +01:00
|
|
|
namePrefix = "";
|
2014-05-21 13:46:37 +01:00
|
|
|
|
2014-05-21 08:36:29 +01:00
|
|
|
src = fetchurl {
|
2014-05-21 13:46:37 +01:00
|
|
|
url = "https://github.com/ansible/ansible/archive/v${version}.tar.gz";
|
2014-05-21 08:36:29 +01:00
|
|
|
sha256 = "1iz1q2h0zll4qsxk0pndc59knasw663kv53sm21q57qz7lf30q9z";
|
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
sed -i "s,\/usr\/share\/ansible\/,$out/share/ansible," lib/ansible/constants.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
2014-05-21 13:46:37 +01:00
|
|
|
dontStrip = true;
|
|
|
|
dontPatchELF = true;
|
|
|
|
dontPatchShebangs = true;
|
2014-05-21 08:36:29 +01:00
|
|
|
|
2014-05-21 13:46:37 +01:00
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
2014-05-21 08:36:29 +01:00
|
|
|
paramiko jinja2 pyyaml httplib2
|
|
|
|
];
|
|
|
|
|
2014-05-21 13:46:37 +01:00
|
|
|
postFixup = ''
|
|
|
|
wrapPythonProgramsIn $out/bin "$out $pythonPath"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2014-05-21 08:36:29 +01:00
|
|
|
homepage = "http://www.ansible.com";
|
2014-05-21 13:46:37 +01:00
|
|
|
description = "A simple automation tool";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.joamaki ];
|
|
|
|
platforms = platforms.linux; # Only tested on Linux
|
2014-05-21 08:36:29 +01:00
|
|
|
};
|
|
|
|
}
|