lxqt-build-tools: fix darwin detection

This commit is contained in:
Stéphan Kochen
2021-05-18 08:59:55 -07:00
committed by Jonathan Ringer
parent de83b9baff
commit 3e6d8a74af
@@ -1,4 +1,5 @@
{ lib { lib
, stdenv
, mkDerivation , mkDerivation
, fetchFromGitHub , fetchFromGitHub
, cmake , cmake
@@ -21,6 +22,13 @@ mkDerivation rec {
sha256 = "0zhcv6cbdn9fr5lpglz26gzssbxkpi824sgc0g7w3hh1z6nqqf8l"; 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 = [ nativeBuildInputs = [
cmake cmake
pkg-config pkg-config