highlight: fix cross-platform build
This commit is contained in:
parent
db3aa421df
commit
cb8fcfa3e6
@ -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++'
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user