Merge pull request #6061 from wmertens/fortune-darwin

fortune: fix Darwin build
This commit is contained in:
Wout Mertens 2015-01-29 19:56:03 +01:00
commit f736843200

View File

@ -14,6 +14,10 @@ stdenv.mkDerivation {
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
'';