diff --git a/pkgs/tools/misc/fortune/default.nix b/pkgs/tools/misc/fortune/default.nix index 68f826a9d93..941aa756420 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