lol

pkgsStatic.tup: fix build

Patch build system to use prefixed versions of "gcc", "ar" and "pkg-config".

authored by

Dmitry Bogatov and committed by
Emery Hemingway
120269fe 9f548d0e

+11 -1
+11 -1
pkgs/development/tools/build-managers/tup/default.nix
··· 21 21 22 22 configurePhase = '' 23 23 substituteInPlace src/tup/link.sh --replace '`git describe' '`echo ${version}' 24 - substituteInPlace Tuprules.tup --replace 'pcre-config' 'pkg-config libpcre' 24 + 25 + for f in Tupfile Tuprules.tup src/tup/server/Tupfile build.sh; do 26 + substituteInPlace "$f" \ 27 + --replace "pkg-config" "${stdenv.cc.targetPrefix}pkg-config" \ 28 + --replace "pcre-config" "${stdenv.cc.targetPrefix}pkg-config libpcre" 29 + done 30 + 31 + cat << EOF > tup.config 32 + CONFIG_CC=${stdenv.cc.targetPrefix}cc 33 + CONFIG_AR=${stdenv.cc.targetPrefix}ar 34 + EOF 25 35 ''; 26 36 27 37 # Regular tup builds require fusermount to have suid, which nix cannot