Merge pull request #145953 from starcraft66/fix-tree-darwin

tree: fix build on darwin/others
This commit is contained in:
Ben Siraphob 2021-11-14 12:18:05 -06:00 committed by GitHub
commit 7d210bcb4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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