38 lines
951 B
Nix
38 lines
951 B
Nix
{ stdenv, fetchurl, pythonPackages, python }:
|
|
|
|
pythonPackages.buildPythonPackage rec {
|
|
version = "1.8.4";
|
|
name = "ansible-${version}";
|
|
namePrefix = "";
|
|
|
|
src = fetchurl {
|
|
url = "http://releases.ansible.com/ansible/ansible-${version}.tar.gz";
|
|
sha256 = "1hcy4f6l9c23aa05yi4mr0zbqp0c6v5zq4c3dim076yfmfrh8z6k";
|
|
};
|
|
|
|
prePatch = ''
|
|
sed -i "s,\/usr\/share\/ansible\/,$out/share/ansible," lib/ansible/constants.py
|
|
'';
|
|
|
|
doCheck = false;
|
|
dontStrip = true;
|
|
dontPatchELF = true;
|
|
dontPatchShebangs = true;
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
|
paramiko jinja2 pyyaml httplib2 boto
|
|
];
|
|
|
|
postFixup = ''
|
|
wrapPythonProgramsIn $out/bin "$out $pythonPath"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "http://www.ansible.com";
|
|
description = "A simple automation tool";
|
|
license = licenses.gpl3;
|
|
maintainers = [ maintainers.joamaki ];
|
|
platforms = platforms.linux ++ [ "x86_64-darwin" ];
|
|
};
|
|
}
|