28 packageOverrides = self: super: {
29 # luasql-sqlite3 master branch broke compatibility with lua 5.1. Pin to
31 # https://github.com/lunarmodules/luasql/issues/147
32 luasql-sqlite3 = super.luaLib.overrideLuarocks super.luasql-sqlite3
34 version = "2.6.0-1-custom";
35 src = fetchFromGitHub {
36 owner = "lunarmodules";
38 rev = "8c58fd6ee32faf750daf6e99af015a31402578d1";
39 hash = "sha256-XlTB5O81yWCrx56m0cXQp7EFzeOyfNeqGbuiYqMrTUk=";
44 lua.override { inherit packageOverrides; };
46 luaEnv = overrideLua.withPackages (ps: with ps; [
55 stdenv.mkDerivation rec {
59 src = fetchFromGitHub {
62 rev = "Mudlet-${version}";
63 fetchSubmodules = true;
64 hash = "sha256-K75frptePKfHeGQNXaX4lKsLwO6Rs6AAka6hvP8MA+k=";
93 # RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
94 "-DCMAKE_SKIP_BUILD_RPATH=ON"
104 cp 3rdparty/edbee-lib/edbee-lib/qslog/lib/libQsLog.so $out/lib
107 mkdir -pv $out/share/mudlet
108 cp -r ../src/mudlet-lua/lua $out/share/mudlet/
110 mkdir -pv $out/share/applications
111 cp ../mudlet.desktop $out/share/applications/
113 mkdir -pv $out/share/pixmaps
114 cp -r ../mudlet.png $out/share/pixmaps/
116 cp -r ../translations $out/share/
118 makeQtWrapper $out/mudlet $out/bin/mudlet \
119 --set LUA_CPATH "${luaEnv}/lib/lua/${lua.luaversion}/?.so" \
120 --prefix LUA_PATH : "$NIX_LUA_PATH" \
121 --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libsForQt5.qtkeychain discord-rpc ]}" \
128 description = "Crossplatform mud client";
129 homepage = "https://www.mudlet.org/";
130 maintainers = with maintainers; [ wyvie pstn cpu ];
131 platforms = platforms.linux;
132 license = licenses.gpl2Plus;