3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/system/ansible/default.nix

38 lines
952 B
Nix
Raw Normal View History

{ stdenv, fetchurl, pythonPackages, python }:
2014-05-21 08:36:29 +01:00
pythonPackages.buildPythonPackage rec {
2014-10-09 19:14:38 +01:00
version = "1.7.2";
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";
2014-10-09 19:14:38 +01:00
sha256 = "1b4qhh6a8z18q7lfa7laxb3p0f7sacvv7nlbr2lix0vznhbffz51";
2014-05-21 08:36:29 +01:00
};
prePatch = ''
sed -i "s,\/usr\/share\/ansible\/,$out/share/ansible," lib/ansible/constants.py
'';
doCheck = false;
dontStrip = true;
dontPatchELF = true;
dontPatchShebangs = true;
2014-05-21 08:36:29 +01:00
propagatedBuildInputs = with pythonPackages; [
paramiko jinja2 pyyaml httplib2 boto
2014-05-21 08:36:29 +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";
description = "A simple automation tool";
license = licenses.gpl3;
maintainers = [ maintainers.joamaki ];
platforms = platforms.linux ++ [ "x86_64-darwin" ];
2014-05-21 08:36:29 +01:00
};
}