anchor.diff: -{ fetchFromGitHub, lib, stdenv, wrapQtAppsHook, git, pcre, pugixml, qtbase, libsForQt5, libsecret, qtmultimedia, qttools, yajl, libzip, hunspell
  -, boost, libGLU, lua, cmake,  which, pkg-config, }:
  +{ lib
  +, stdenv
  +, fetchFromGitHub
  +, cmake
  +, git
  +, pkg-config
  +, qttools
  +, which
  +, wrapQtAppsHook
  +, boost
  +, hunspell
  +, libGLU
  +, libsForQt5
  +, libsecret
  +, libzip
  +, lua
  +, pcre
  +, pugixml
  +, qtbase
  +, qtmultimedia
  +, yajl
  +}:
   
   let
     luaEnv = lua.withPackages(ps: with ps; [
  
positive.code: in
  stdenv.mkDerivation rec {
    pname = "mudlet";
    version = "4.12.0";
  
    src = fetchFromGitHub {
      owner = "Mudlet";
      repo = "Mudlet";
      rev = "Mudlet-${version}";
      fetchSubmodules = true;
      sha256 = "023plm5mwm15xikmdh1mq3gx1n7y4a0r0kw9fvk3rvm9brm78hzp";
    };
  
    nativeBuildInputs = [ pkg-config cmake wrapQtAppsHook git qttools which ];
    buildInputs = [
      pcre pugixml qtbase libsForQt5.qtkeychain qtmultimedia luaEnv libsecret libzip libGLU yajl boost hunspell
    ];
  
    WITH_FONTS = "NO";
    WITH_UPDATER = "NO";
  
    installPhase =  ''
      mkdir -pv $out/lib
      cp 3rdparty/edbee-lib/edbee-lib/qslog/lib/libQsLog.so $out/lib
      mkdir -pv $out/bin
  
negative.code:     cp -r ../mudlet.png $out/share/pixmaps/
  
      makeQtWrapper $out/mudlet $out/bin/mudlet \
        --set LUA_CPATH "${luaEnv}/lib/lua/${lua.luaversion}/?.so" \
        --prefix LUA_PATH : "$NIX_LUA_PATH" \
        --prefix LD_LIBRARY_PATH : "${libsForQt5.qtkeychain}/lib/" \
        --run "cd $out";
  
      runHook postInstall
    '';
  
    meta = with lib; {
      description = "Crossplatform mud client";
      homepage = "https://www.mudlet.org/";
      maintainers = [ maintainers.wyvie maintainers.pstn ];
      platforms = platforms.linux;
      license = licenses.gpl2Plus;
    };
  }
  