fortune: fix Darwin build

This commit is contained in:
Wout Mertens 2015-01-29 19:14:49 +01:00
parent 45c52b7312
commit bc6a35c92d

View File

@ -13,6 +13,10 @@ stdenv.mkDerivation {
preConfigure = ''
sed -i "s|/usr/|$out/|" Makefile
'';
preBuild = ''
makeFlagsArray=("CC=$CC" "REGEXDEFS=-DHAVE_REGEX_H -DPOSIX_REGEX" "LDFLAGS=")
'';
postInstall = ''
ln -s $out/games/fortune $out/bin/fortune