nixpkgs/pkgs/tools/system/ansible/default.nix

38 lines
955 B
Nix
Raw Normal View History

{ stdenv, fetchurl, pythonPackages, python }:
2014-05-21 07:36:29 +00:00
pythonPackages.buildPythonPackage rec {
2014-07-31 10:24:30 +00:00
version = "1.6.10";
name = "ansible-${version}";
2014-05-21 07:36:29 +00:00
namePrefix = "";
2014-05-21 07:36:29 +00:00
src = fetchurl {
url = "https://github.com/ansible/ansible/archive/v${version}.tar.gz";
2014-07-31 10:24:30 +00:00
sha256 = "0j133353skzb6ydrqqgfkzbkkj1zaibl1x8sgl0arnfma8qky1g1";
2014-05-21 07:36:29 +00: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 07:36:29 +00:00
propagatedBuildInputs = with pythonPackages; [
paramiko jinja2 pyyaml httplib2 boto
2014-05-21 07:36:29 +00:00
];
postFixup = ''
wrapPythonProgramsIn $out/bin "$out $pythonPath"
'';
meta = with stdenv.lib; {
2014-05-21 07:36:29 +00:00
homepage = "http://www.ansible.com";
description = "A simple automation tool";
license = licenses.gpl3;
maintainers = [ maintainers.joamaki ];
platforms = platforms.linux; # Only tested on Linux
2014-05-21 07:36:29 +00:00
};
}