anchor.diff:                        ++ lib.optionals x11Mode [ mkfontdir ]
                         ++ lib.optionals qtMode [
                              pkgconfig mkfontdir qt5.qtbase.dev
  -                           qt5.qtmultimedia.dev
  +                           qt5.qtmultimedia.dev makeWrapper
                            ];
   
     makeFlags = [ "PREFIX=$(out)" ];
  
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: { stdenv, lib, fetchurl, writeScript, coreutils, ncurses, gzip, flex, bison
  , less, makeWrapper
  , x11Mode ? false, qtMode ? false, libXaw, libXext, mkfontdir, pkgconfig, qt5
  }:
  
  