From e47b778109960397ee3c9fdd7e11c4242e54673c Mon Sep 17 00:00:00 2001 From: Joe Fiorini Date: Mon, 22 Sep 2014 10:12:07 -0400 Subject: [PATCH 1/2] Allow ansible to install on darwin platforms I am using this package on my Yosemite install of OS X and it works great. It also pretty closely follows the Homebrew recipe that most OS X users use, so I think we can open it up to other OS X users. --- pkgs/tools/system/ansible/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/system/ansible/default.nix b/pkgs/tools/system/ansible/default.nix index b3d40712926c..4bc41f5d04e4 100644 --- a/pkgs/tools/system/ansible/default.nix +++ b/pkgs/tools/system/ansible/default.nix @@ -32,6 +32,6 @@ pythonPackages.buildPythonPackage rec { description = "A simple automation tool"; license = licenses.gpl3; maintainers = [ maintainers.joamaki ]; - platforms = platforms.linux; # Only tested on Linux + platforms = platforms.linux ++ [ "x86_64-darwin" ]; }; } From c9a49a6725a81c1638b515b1502934cc7fb935f5 Mon Sep 17 00:00:00 2001 From: Joe Fiorini Date: Mon, 22 Sep 2014 10:13:21 -0400 Subject: [PATCH 2/2] Update to latest ansible version --- pkgs/tools/system/ansible/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/system/ansible/default.nix b/pkgs/tools/system/ansible/default.nix index 4bc41f5d04e4..4491bf7e4841 100644 --- a/pkgs/tools/system/ansible/default.nix +++ b/pkgs/tools/system/ansible/default.nix @@ -1,13 +1,13 @@ { stdenv, fetchurl, pythonPackages, python }: pythonPackages.buildPythonPackage rec { - version = "1.6.10"; + version = "1.7.1"; name = "ansible-${version}"; namePrefix = ""; - + src = fetchurl { - url = "https://github.com/ansible/ansible/archive/v${version}.tar.gz"; - sha256 = "0j133353skzb6ydrqqgfkzbkkj1zaibl1x8sgl0arnfma8qky1g1"; + url = "http://releases.ansible.com/ansible/ansible-${version}.tar.gz"; + sha1 = "4f4be4d45f28f52e4ab0c063efb66c7b9f482a51"; }; prePatch = ''