cmake: Only apply application-services.patch with 3.11

The patch doesn't apply with earlier versions. Fixes #41816.
This commit is contained in:
Ben Gamari 2018-06-10 21:30:23 -04:00
parent 41cdec2e51
commit 5962d0d5f3

View file

@ -58,7 +58,7 @@ 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 ]
# Don't depend on frameworks.
++ optional useSharedLibraries ./application-services.patch # TODO: remove conditional
++ optional (useSharedLibraries && majorVersion == "3.11") ./application-services.patch # TODO: remove conditional
++ optional stdenv.isCygwin ./3.2.2-cygwin.patch;
outputs = [ "out" ];