highlight: fix cross-platform build

This commit is contained in:
Christian Kampka
2021-10-16 23:23:36 +03:00
committed by Artturin
parent db3aa421df
commit cb8fcfa3e6
+4 -1
View File
@@ -20,7 +20,10 @@ let
buildInputs = [ getopt lua boost ];
prePatch = lib.optionalString stdenv.cc.isClang ''
prePatch = ''
substituteInPlace src/makefile \
--replace "shell pkg-config" "shell $PKG_CONFIG"
'' + lib.optionalString stdenv.cc.isClang ''
substituteInPlace src/makefile \
--replace 'CXX=g++' 'CXX=clang++'
'';