mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
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>
This commit is contained in:
parent
6998a866a8
commit
5eb3dd8a1b
1 changed files with 7 additions and 1 deletions
|
@ -26,7 +26,13 @@ stdenv.mkDerivation rec {
|
|||
patches =
|
||||
# Don't search in non-Nix locations such as /usr, but do search in
|
||||
# Nixpkgs' Glibc.
|
||||
optional (stdenv ? glibc) ./search-path.patch;
|
||||
optional (stdenv ? glibc) ./search-path.patch ++
|
||||
optional (stdenv ? cross) (fetchurl {
|
||||
name = "fix-darwin-cross-compile.patch";
|
||||
url = "http://public.kitware.com/Bug/file_download.php?"
|
||||
+ "file_id=4981&type=bug";
|
||||
sha256 = "16acmdr27adma7gs9rs0dxdiqppm15vl3vv3agy7y8s94wyh4ybv";
|
||||
});
|
||||
|
||||
buildInputs = [ curl expat zlib bzip2 libarchive ]
|
||||
++ optional useNcurses ncurses
|
||||
|
|
Loading…
Reference in a new issue