anchor.diff:          --replace sail "" \
           --replace trek "" \
   	--replace dab ""
  +      substituteInPlace Makefile.inc \
  +        --replace 2555 555 \
  +        --replace 2550 550
       '';
       NIX_CFLAGS_COMPILE = [
         "-D__noinline="
  
positive.code:     patchPhase = ''
        sed -i '1i #include <time.h>' adventure/save.c
  
        # Disable some games that don't build. They should be possible to
        # build but need to look at how to implement stuff in Linux.
        substituteInPlace Makefile \
          ${lib.optionalString stdenv.isDarwin "--replace adventure ''"} \
          --replace atc "" \
  
negative.code:       "-DRANDOM_MAX=RAND_MAX"
        "-DINFTIM=-1"
      ];
      postBuild = ''
        mkdir -p $out/usr/games $out/usr/share/games/ching \
                 $out/usr/share/games/quiz.db \
                 $out/usr/libexec/ching $out/var/games/hackdir
        touch $out/var/games/hackdir/perm
      '';
      preFixup = ''
        mkdir -p $out/bin
        mv $out/games/* $out/bin
        rmdir $out/games
      '';
      buildInputs = [ compat libcurses libterminfo libressl ];
      extraPaths = [
        (fetchNetBSD "share/dict" "7.1.2" "0nickhsjwgnr2h9nvwflvgfz93kqms5hzdnpyq02crpj35w98bh4")
  