Merge pull request #97004 from kampka/highlight
commitfb8eb7e9f113186e55c11d300d1dbb6214ceac43
authorArtturi <Artturin@artturin.com>
dateSun 17 Oct 2021, 00:17 (5 years ago)
parent85d1b34f33e326
pkgs/tools/text/highlight/default.nix+6−1
@@ -20,7 +20,12 @@ 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+ substituteInPlace makefile \
27+ --replace 'gzip' 'gzip -n'
28+ '' + lib.optionalString stdenv.cc.isClang ''
2429 substituteInPlace src/makefile \
2530 --replace 'CXX=g++' 'CXX=clang++'
2631 '';