Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #6061 from wmertens/fortune-darwin

fortune: fix Darwin build

+4
+4
pkgs/tools/misc/fortune/default.nix
··· 13 13 preConfigure = '' 14 14 sed -i "s|/usr/|$out/|" Makefile 15 15 ''; 16 + 17 + preBuild = '' 18 + makeFlagsArray=("CC=$CC" "REGEXDEFS=-DHAVE_REGEX_H -DPOSIX_REGEX" "LDFLAGS=") 19 + ''; 16 20 17 21 postInstall = '' 18 22 ln -s $out/games/fortune $out/bin/fortune