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
@ -26,7 +26,13 @@ stdenv.mkDerivation rec {
|
|||||||
patches =
|
patches =
|
||||||
# Don't search in non-Nix locations such as /usr, but do search in
|
# Don't search in non-Nix locations such as /usr, but do search in
|
||||||
# Nixpkgs' Glibc.
|
# 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 ]
|
buildInputs = [ curl expat zlib bzip2 libarchive ]
|
||||||
++ optional useNcurses ncurses
|
++ optional useNcurses ncurses
|
||||||
|
Loading…
Reference in New Issue
Block a user