12 stdenv.mkDerivation rec {
13 pname = "fortune-mod";
16 # We use fetchurl instead of fetchFromGitHub because the release pack has some
19 url = "https://github.com/shlomif/fortune-mod/releases/download/fortune-mod-${version}/fortune-mod-${version}.tar.xz";
20 sha256 = "sha256-Hzh4dyVOleq2H5NyV7QmCfKbmU7wVxUxZVu/w6KsdKw=";
29 buildInputs = [ recode ];
32 "-DLOCALDIR=${placeholder "out"}/share/fortunes"
33 ] ++ lib.optional (!withOffensive) "-DNO_OFFENSIVE=true";
36 (builtins.toFile "not-a-game.patch" ''
37 diff --git a/CMakeLists.txt b/CMakeLists.txt
38 index 865e855..5a59370 100644
41 @@ -154,7 +154,7 @@ ENDMACRO()
54 postFixup = lib.optionalString (!withOffensive) ''
55 rm $out/share/games/fortunes/men-women*
59 mainProgram = "fortune";
60 description = "Program that displays a pseudorandom message from a database of quotations";
61 license = licenses.bsdOriginal;
62 platforms = platforms.unix;
63 maintainers = with maintainers; [ vonfry ];