highlight: fix cross-platform build

This commit is contained in:
Christian Kampka 2020-09-03 11:25:38 +02:00 committed by Artturin
parent db3aa421df
commit cb8fcfa3e6

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++'
'';