git.iko.soy/typeable/nixpkgs
on master help sign in
lxqt-build-tools: fix darwin detection
commit3e6d8a74afc0114e38840e0937fbe9ff5cc65a7d authorStéphan Kochen <git@stephank.nl> dateMon 17 May 2021, 21:21 (6 years ago) parentde83b9b
1 file changed+8
pkgs/desktops/lxqt/lxqt-build-tools/default.nix+8
pkgs/desktops/lxqt/lxqt-build-tools/default.nix+8
@@ -1,4 +1,5 @@
11{ lib
2+, stdenv
23, mkDerivation
34, fetchFromGitHub
45, cmake
@@ -21,6 +22,13 @@ mkDerivation rec {
2122 sha256 = "0zhcv6cbdn9fr5lpglz26gzssbxkpi824sgc0g7w3hh1z6nqqf8l";
2223 };
2324
25+ # Nix clang on darwin identifies as 'Clang', not 'AppleClang'
26+ # Without this, dependants fail to link.
27+ postPatch = ''
28+ substituteInPlace cmake/modules/LXQtCompilerSettings.cmake \
29+ --replace AppleClang Clang
30+ '';
31+
2432 nativeBuildInputs = [
2533 cmake
2634 pkg-config