From 4e96d0e2b7a87197610e7fea3a1c486ceda58c8a Mon Sep 17 00:00:00 2001 From: Matthew Pickering Date: Wed, 14 Mar 2018 18:22:10 +0000 Subject: [PATCH] Only apply patch on darwin --- pkgs/development/libraries/qca-qt5/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/qca-qt5/default.nix b/pkgs/development/libraries/qca-qt5/default.nix index db40a40d02d..6e190a656f6 100644 --- a/pkgs/development/libraries/qca-qt5/default.nix +++ b/pkgs/development/libraries/qca-qt5/default.nix @@ -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'';