Only apply patch on darwin

(cherry picked from commit 4e96d0e2b7)
This commit is contained in:
Matthew Pickering
2018-03-14 18:22:10 +00:00
committed by Daiderd Jordan
parent 4ab4af1bb5
commit ec191e7d96

View File

@@ -12,8 +12,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake pkgconfig ];
# Without this patch cmake fails with a "No known features for CXX compiler"
# error
patches = [./move-project.patch];
# error on darwin
patches = stdenv.lib.optional stdenv.isDarwin ./move-project.patch ;
# tells CMake to use this CA bundle file if it is accessible
preConfigure = ''export QC_CERTSTORE_PATH=/etc/ssl/certs/ca-certificates.crt'';