2015-06-15 20:24:02 +02:00
|
|
|
{ windowsSupport ? true, stdenv, fetchurl, pythonPackages, python }:
|
2014-05-21 09:36:29 +02:00
|
|
|
|
|
|
|
pythonPackages.buildPythonPackage rec {
|
2015-10-28 18:12:08 +01:00
|
|
|
version = "1.9.4";
|
2014-05-21 14:46:37 +02:00
|
|
|
name = "ansible-${version}";
|
2014-05-21 09:36:29 +02:00
|
|
|
namePrefix = "";
|
2014-09-22 16:13:21 +02:00
|
|
|
|
2014-05-21 09:36:29 +02:00
|
|
|
src = fetchurl {
|
2015-10-28 18:12:08 +01:00
|
|
|
url = "https://releases.ansible.com/ansible/${name}.tar.gz";
|
|
|
|
sha256 = "1qvgzb66nlyc2ncmgmqhzdk0x0p2px09967p1yypf5czwjn2yb4p";
|
2014-05-21 09:36:29 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
2015-10-20 20:20:05 +02:00
|
|
|
sed -i "s,/usr/,$out," lib/ansible/constants.py
|
2014-05-21 09:36:29 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
2014-05-21 14:46:37 +02:00
|
|
|
dontStrip = true;
|
|
|
|
dontPatchELF = true;
|
|
|
|
dontPatchShebangs = true;
|
2014-05-21 09:36:29 +02:00
|
|
|
|
2015-10-20 20:20:05 +02:00
|
|
|
pythonPath = with pythonPackages; [
|
2015-05-04 08:55:12 +02:00
|
|
|
paramiko jinja2 pyyaml httplib2 boto six
|
2015-06-15 20:24:02 +02:00
|
|
|
] ++ stdenv.lib.optional windowsSupport pywinrm;
|
2014-05-21 09:36:29 +02:00
|
|
|
|
2014-05-21 14:46:37 +02:00
|
|
|
meta = with stdenv.lib; {
|
2014-05-21 09:36:29 +02:00
|
|
|
homepage = "http://www.ansible.com";
|
2014-05-21 14:46:37 +02:00
|
|
|
description = "A simple automation tool";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.joamaki ];
|
2014-09-22 16:12:07 +02:00
|
|
|
platforms = platforms.linux ++ [ "x86_64-darwin" ];
|
2014-05-21 09:36:29 +02:00
|
|
|
};
|
|
|
|
}
|