lxqt-build-tools: fix darwin detection

This commit is contained in:
Stéphan Kochen 2021-05-17 21:21:50 +02:00 committed by Jonathan Ringer
parent de83b9baff
commit 3e6d8a74af

View file

@ -1,4 +1,5 @@
{ lib
, stdenv
, mkDerivation
, fetchFromGitHub
, cmake
@ -21,6 +22,13 @@ mkDerivation rec {
sha256 = "0zhcv6cbdn9fr5lpglz26gzssbxkpi824sgc0g7w3hh1z6nqqf8l";
};
# Nix clang on darwin identifies as 'Clang', not 'AppleClang'
# Without this, dependants fail to link.
postPatch = ''
substituteInPlace cmake/modules/LXQtCompilerSettings.cmake \
--replace AppleClang Clang
'';
nativeBuildInputs = [
cmake
pkg-config