From 12de4d5cb3bdd703904cf75aa6ddb9b9eb8f9b68 Mon Sep 17 00:00:00 2001 From: Dan Peebles Date: Thu, 3 Dec 2015 21:54:32 -0500 Subject: ansible2: init --- pkgs/tools/system/ansible/2.nix | 33 +++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/tools/system/ansible/2.nix diff --git a/pkgs/tools/system/ansible/2.nix b/pkgs/tools/system/ansible/2.nix new file mode 100644 index 000000000000..21469e645bb7 --- /dev/null +++ b/pkgs/tools/system/ansible/2.nix @@ -0,0 +1,33 @@ +{ windowsSupport ? true, stdenv, fetchurl, pythonPackages, python }: + +pythonPackages.buildPythonPackage rec { + version = "v2.0.0_0.6.rc1"; + name = "ansible-${version}"; + namePrefix = ""; + + src = fetchurl { + url = "http://releases.ansible.com/ansible/ansible-2.0.0-0.6.rc1.tar.gz"; + sha256 = "0v7fqi7qg9lzvpsjlaw9rzas8n1cdsyp3y9jrqzjxs9nbknwcibd"; + }; + + prePatch = '' + sed -i "s,/usr/,$out," lib/ansible/constants.py + ''; + + doCheck = false; + dontStrip = true; + dontPatchELF = true; + dontPatchShebangs = true; + + pythonPath = with pythonPackages; [ + paramiko jinja2 pyyaml httplib2 boto six + ] ++ stdenv.lib.optional windowsSupport pywinrm; + + meta = with stdenv.lib; { + homepage = "http://www.ansible.com"; + description = "A simple automation tool"; + license = licenses.gpl3; + maintainers = [ maintainers.copumpkin ]; + platforms = platforms.linux ++ [ "x86_64-darwin" ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 44a379a8a386..c340d5e02e3b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5356,6 +5356,8 @@ let ansible = callPackage ../tools/system/ansible { }; + ansible2 = callPackage ../tools/system/ansible/2.nix { }; + antlr = callPackage ../development/tools/parsing/antlr/2.7.7.nix { }; antlr3 = callPackage ../development/tools/parsing/antlr { }; -- cgit 1.4.1