anchor.diff: -{ stdenv, lib, fetchurl, writeScript, coreutils, ncurses, gzip, flex, bison, less
  +{ stdenv, lib, fetchurl, writeScript, coreutils, ncurses, gzip, flex, bison
  +, less, makeWrapper
   , x11Mode ? false, qtMode ? false, libXaw, libXext, mkfontdir, pkgconfig, qt5
   }:
   
  
positive.code:     ${lib.optionalString qtMode "mv $out/bin/nethack $out/bin/nethack-qt"}
    '';
  
    meta = with stdenv.lib; {
      description = "Rogue-like game";
      homepage = http://nethack.org/;
  
negative.code:                       ++ lib.optionals x11Mode [ mkfontdir ]
                        ++ lib.optionals qtMode [
                             pkgconfig mkfontdir qt5.qtbase.dev
                             qt5.qtmultimedia.dev makeWrapper
                           ];
  
    makeFlags = [ "PREFIX=$(out)" ];
  