cmake: add install_name_tool on Darwin to fix the build

svn path=/nixpkgs/trunk/; revision=26511
This commit is contained in:
Peter Simons 2011-03-25 12:55:29 +00:00
parent 0e5593b0f6
commit 5ba10a94e1

View File

@ -1,5 +1,6 @@
{fetchurl, stdenv, replace, curl, expat, zlib, bzip2, libarchive
, useNcurses ? false, ncurses, useQt4 ? false, qt4}:
, useNcurses ? false, ncurses, useQt4 ? false, qt4
, darwinInstallNameToolUtility}:
let
os = stdenv.lib.optionalString;
@ -19,6 +20,7 @@ stdenv.mkDerivation rec {
};
buildInputs = [ curl expat zlib bzip2 libarchive ]
++ optional stdenv.isDarwin darwinInstallNameToolUtility
++ optional useNcurses ncurses
++ optional useQt4 qt4;