anchor.diff:                ] ++ lib.optional tileMode "TILES=y"
                   ++ lib.optional enableSound "SOUND=y";
   
  -  postInstall = lib.optionalString tileMode "mv $out/bin/crawl $out/bin/crawl-tiles";
  +  postInstall = ''
  +    ${lib.optionalString tileMode "mv $out/bin/crawl $out/bin/crawl-tiles"}
  +    sed -i 's#/usr/games/##' debian/crawl${lib.optionalString tileMode "-tiles"}.desktop
  +    install -m 444 -D debian/crawl${lib.optionalString tileMode "-tiles"}.desktop \
  +      $out/share/applications/crawl${lib.optionalString tileMode "-tiles"}.desktop
  +    install -m 444 -D dat/tiles/stone_soup_icon-512x512.png $out/share/icons/hicolor/512x512/apps/crawl.png
  +  '';
   
     enableParallelBuilding = true;
   
  
positive.code:     sha256 = "1d6mip4rvp81839yf2xm63hf34aza5wg4g5z5hi5275j94szaacs";
    };
  
    # Patch hard-coded paths in the makefile
    patches = [ ./crawl_purify.patch ];
  
    nativeBuildInputs = [ pkgconfig which perl pngcrush advancecomp ];
  
  
negative.code: { stdenv, lib, fetchFromGitHub, fetchpatch, which, sqlite, lua5_1, perl, python3, zlib, pkgconfig, ncurses
  , dejavu_fonts, libpng, SDL2, SDL2_image, SDL2_mixer, libGLU_combined, freetype, pngcrush, advancecomp
  , tileMode ? false, enableSound ? tileMode
  }:
  