diff options
author | Jussi Maki <jussi.maki@gmail.com> | 2014-05-21 14:46:37 +0200 |
---|---|---|
committer | Jussi Maki <jussi.maki@gmail.com> | 2014-05-21 14:46:37 +0200 |
commit | 75cb4857180b2afbcee7e12273ad87928c4d4395 (patch) | |
tree | 54eb96f4e3f74620eaa99f40858fef670f75ab17 /pkgs/tools/system/ansible/default.nix | |
parent | 92d8001c255f6ab98365d0e60be4f13f6b014a7a (diff) | |
download | nixlib-75cb4857180b2afbcee7e12273ad87928c4d4395.tar nixlib-75cb4857180b2afbcee7e12273ad87928c4d4395.tar.gz nixlib-75cb4857180b2afbcee7e12273ad87928c4d4395.tar.bz2 nixlib-75cb4857180b2afbcee7e12273ad87928c4d4395.tar.lz nixlib-75cb4857180b2afbcee7e12273ad87928c4d4395.tar.xz nixlib-75cb4857180b2afbcee7e12273ad87928c4d4395.tar.zst nixlib-75cb4857180b2afbcee7e12273ad87928c4d4395.zip |
ansible: conventions, fix module execution
Diffstat (limited to 'pkgs/tools/system/ansible/default.nix')
-rw-r--r-- | pkgs/tools/system/ansible/default.nix | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/pkgs/tools/system/ansible/default.nix b/pkgs/tools/system/ansible/default.nix index 31d8bf40f51c..241bd75fd292 100644 --- a/pkgs/tools/system/ansible/default.nix +++ b/pkgs/tools/system/ansible/default.nix @@ -1,11 +1,12 @@ -{ stdenv, pythonPackages, fetchurl, python }: +{ stdenv, fetchurl, pythonPackages, python }: pythonPackages.buildPythonPackage rec { - name = "ansible-1.6.1"; + version = "1.6.1"; + name = "ansible-${version}"; namePrefix = ""; - + src = fetchurl { - url = "https://github.com/ansible/ansible/archive/v1.6.1.tar.gz"; + url = "https://github.com/ansible/ansible/archive/v${version}.tar.gz"; sha256 = "1iz1q2h0zll4qsxk0pndc59knasw663kv53sm21q57qz7lf30q9z"; }; @@ -14,16 +15,23 @@ pythonPackages.buildPythonPackage rec { ''; doCheck = false; + dontStrip = true; + dontPatchELF = true; + dontPatchShebangs = true; - pythonPath = with pythonPackages; [ + propagatedBuildInputs = with pythonPackages; [ paramiko jinja2 pyyaml httplib2 ]; - meta = { + postFixup = '' + wrapPythonProgramsIn $out/bin "$out $pythonPath" + ''; + + meta = with stdenv.lib; { homepage = "http://www.ansible.com"; - description = "Ansible simple automation tool"; - license = stdenv.lib.licenses.gpl3; - maintainers = [ stdenv.lib.maintainers.joamaki ]; - platforms = stdenv.lib.platforms.linux; # Only tested on Linux + description = "A simple automation tool"; + license = licenses.gpl3; + maintainers = [ maintainers.joamaki ]; + platforms = platforms.linux; # Only tested on Linux }; } |