mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
cmake: fix build with libuv 1.21 (#43052)
This commit is contained in:
parent
6afda41686
commit
e7facc718e
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, pkgconfig
|
||||
{ stdenv, fetchurl, fetchpatch, pkgconfig
|
||||
, bzip2, curl, expat, libarchive, xz, zlib, libuv, rhash
|
||||
, majorVersion ? "3.11"
|
||||
# darwin attributes
|
||||
@ -57,6 +57,11 @@ stdenv.mkDerivation rec {
|
||||
|
||||
# Don't search in non-Nix locations such as /usr, but do search in our libc.
|
||||
patches = [ ./search-path-3.9.patch ]
|
||||
++ optional (versionOlder version "3.12") (fetchpatch {
|
||||
name = "cmake-3.11-libuv-1.21.patch";
|
||||
url = https://gitlab.kitware.com/cmake/cmake/commit/889033b5c6847cf1f7bd789384405d59dc333bf6.patch;
|
||||
sha256 = "0683zbyb3bicaxqzrj4wgdan6x08k30m20kkmpjvw30nr6a8r6xq";
|
||||
})
|
||||
# Don't depend on frameworks.
|
||||
++ optional (useSharedLibraries && majorVersion == "3.11") ./application-services.patch # TODO: remove conditional
|
||||
++ optional stdenv.isCygwin ./3.2.2-cygwin.patch;
|
||||
|
Loading…
Reference in New Issue
Block a user