From cb8fcfa3e65b169cd94709fff54dd4ea55d24db7 Mon Sep 17 00:00:00 2001 From: Christian Kampka Date: Thu, 3 Sep 2020 11:25:38 +0200 Subject: [PATCH] highlight: fix cross-platform build --- pkgs/tools/text/highlight/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/text/highlight/default.nix b/pkgs/tools/text/highlight/default.nix index f44ddc9d0e91..4dafc7688883 100644 --- a/pkgs/tools/text/highlight/default.nix +++ b/pkgs/tools/text/highlight/default.nix @@ -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++' '';