tree: blind attempt to fix the build on Darwin
svn path=/nixpkgs/trunk/; revision=27917
This commit is contained in:
parent
7743596401
commit
e0e42141d9
@ -2,6 +2,17 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
version = "1.6.0";
|
version = "1.6.0";
|
||||||
|
|
||||||
|
# These settings are found in the Makefile, but there seems to be no
|
||||||
|
# way to select one ore the other setting other than editing the file
|
||||||
|
# manually, so we have to duplicate the know how here.
|
||||||
|
systemFlags =
|
||||||
|
if stdenv.isDarwin then ''
|
||||||
|
CFLAGS="-O2 -Wall -fomit-frame-pointer -no-cpp-precomp"
|
||||||
|
LDFLAGS=
|
||||||
|
OBJS+=strverscmp.o
|
||||||
|
'' else
|
||||||
|
"";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "tree-${version}";
|
name = "tree-${version}";
|
||||||
@ -15,6 +26,7 @@ stdenv.mkDerivation {
|
|||||||
makeFlagsArray=(
|
makeFlagsArray=(
|
||||||
prefix=$out
|
prefix=$out
|
||||||
MANDIR=$out/share/man/man1
|
MANDIR=$out/share/man/man1
|
||||||
|
${systemFlags}
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user