From f3fade60fc81efe3732e1157ff2fb9ee10cfe168 Mon Sep 17 00:00:00 2001 From: "Jason \"Don\" O'Conal" Date: Mon, 27 May 2013 13:43:53 +1000 Subject: [PATCH] pygit: add DYLD_LIBRARY_PATH to compile on darwin --- pkgs/top-level/python-packages.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7a0e527f3860..94cd526b616b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3369,6 +3369,10 @@ pythonPackages = python.modules // rec { md5 = "8d27f84509a96d6791a6c393ae67d7c8"; }; + preConfigure = ( if stdenv.isDarwin then '' + export DYLD_LIBRARY_PATH="${pkgs.libgit2}/lib" + '' else "" ); + propagatedBuildInputs = [ pkgs.libgit2 ]; meta = {