tree: fix package

makeFlags seems to be escaped now, so to do CC=$CC we need to
append it to makeFlags in the shell script now

Otherwise we get CC=\$CC
This commit is contained in:
Maciej Krüger 2021-11-13 12:19:32 +01:00
parent af3d601919
commit f745b93d86
No known key found for this signature in database
GPG Key ID: 0D948CE19CF49C5F

View File

@ -30,12 +30,12 @@ stdenv.mkDerivation rec {
preConfigure = ''
sed -i Makefile -e 's|^OBJS=|OBJS=$(EXTRA_OBJS) |'
makeFlags+=("CC=$CC")
'';
makeFlags = [
"prefix=${placeholder "out"}"
"MANDIR=${placeholder "out"}/share/man/man1"
"CC=$CC"
systemFlags
];