From bc6a35c92d8865bd10141ea8fc08346343e6e60e Mon Sep 17 00:00:00 2001 From: Wout Mertens Date: Thu, 29 Jan 2015 19:14:49 +0100 Subject: [PATCH] fortune: fix Darwin build --- pkgs/tools/misc/fortune/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/tools/misc/fortune/default.nix b/pkgs/tools/misc/fortune/default.nix index 68f826a9d93b..941aa7564204 100644 --- a/pkgs/tools/misc/fortune/default.nix +++ b/pkgs/tools/misc/fortune/default.nix @@ -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