cmake: Add patch for fixing Darwin cross-builds.

This is an upstream patch and will eventually get into the next release.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>

aszlig 5eb3dd8a 6998a866

+7 -1
+7 -1
pkgs/development/tools/build-managers/cmake/default.nix
··· 26 26 patches = 27 27 # Don't search in non-Nix locations such as /usr, but do search in 28 28 # Nixpkgs' Glibc. 29 - optional (stdenv ? glibc) ./search-path.patch; 29 + optional (stdenv ? glibc) ./search-path.patch ++ 30 + optional (stdenv ? cross) (fetchurl { 31 + name = "fix-darwin-cross-compile.patch"; 32 + url = "http://public.kitware.com/Bug/file_download.php?" 33 + + "file_id=4981&type=bug"; 34 + sha256 = "16acmdr27adma7gs9rs0dxdiqppm15vl3vv3agy7y8s94wyh4ybv"; 35 + }); 30 36 31 37 buildInputs = [ curl expat zlib bzip2 libarchive ] 32 38 ++ optional useNcurses ncurses