2014-05-21 13:46:37 +01:00
|
|
|
{ stdenv, fetchurl, pythonPackages, python }:
|
2014-05-21 08:36:29 +01:00
|
|
|
|
|
|
|
pythonPackages.buildPythonPackage rec {
|
2015-02-26 10:51:52 +00:00
|
|
|
version = "1.8.4";
|
2014-05-21 13:46:37 +01:00
|
|
|
name = "ansible-${version}";
|
2014-05-21 08:36:29 +01:00
|
|
|
namePrefix = "";
|
2014-09-22 15:13:21 +01:00
|
|
|
|
2014-05-21 08:36:29 +01:00
|
|
|
src = fetchurl {
|
2014-09-22 15:13:21 +01:00
|
|
|
url = "http://releases.ansible.com/ansible/ansible-${version}.tar.gz";
|
2015-02-26 10:51:52 +00:00
|
|
|
sha256 = "1hcy4f6l9c23aa05yi4mr0zbqp0c6v5zq4c3dim076yfmfrh8z6k";
|
2014-05-21 08:36:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
2015-02-26 10:51:52 +00:00
|
|
|
sed -i "s,\/usr\/share\/ansible\/,$out/share/ansible," lib/ansible/constants.py
|
2014-05-21 08:36:29 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
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; [
|
2015-05-04 07:55:12 +01:00
|
|
|
paramiko jinja2 pyyaml httplib2 boto six
|
2014-05-21 08:36:29 +01:00
|
|
|
];
|
|
|
|
|
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 ];
|
2014-09-22 15:12:07 +01:00
|
|
|
platforms = platforms.linux ++ [ "x86_64-darwin" ];
|
2014-05-21 08:36:29 +01:00
|
|
|
};
|
|
|
|
}
|