highlight: fix cross-platform build
commitcb8fcfa3e65b169cd94709fff54dd4ea55d24db7
authorChristian Kampka <christian@kampka.net>
dateThu 3 Sep 2020, 11:25 (6 years ago)
parentdb3aa42
pkgs/tools/text/highlight/default.nix+4−1
@@ -20,7 +20,10 @@ let
2020
2121 buildInputs = [ getopt lua boost ];
2222
23− prePatch = lib.optionalString stdenv.cc.isClang ''
23+ prePatch = ''
24+ substituteInPlace src/makefile \
25+ --replace "shell pkg-config" "shell $PKG_CONFIG"
26+ '' + lib.optionalString stdenv.cc.isClang ''
2427 substituteInPlace src/makefile \
2528 --replace 'CXX=g++' 'CXX=clang++'
2629 '';