2019-11-23 15:07:18 +00:00
|
|
|
{ fetchFromGitHub, fetchpatch, stdenv, wrapQtAppsHook, git, pcre, pugixml, qtbase, libsForQt5, qtmultimedia, qttools, yajl, libzip, hunspell
|
2019-09-07 12:22:44 +01:00
|
|
|
, boost, libGLU, lua, cmake, which, }:
|
2014-09-15 14:37:24 +01:00
|
|
|
|
2019-09-07 12:22:44 +01:00
|
|
|
let
|
|
|
|
luaEnv = lua.withPackages(ps: with ps; [ luazip luafilesystem lrexlib-pcre luasql-sqlite3 lua-yajl luautf8 ]);
|
|
|
|
in
|
2014-09-15 14:37:24 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mudlet";
|
2019-11-23 15:07:18 +00:00
|
|
|
version = "4.3";
|
2019-09-07 12:22:44 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mudlet";
|
|
|
|
repo = "Mudlet";
|
|
|
|
rev = "Mudlet-${version}";
|
|
|
|
fetchSubmodules = true;
|
2019-11-23 15:07:18 +00:00
|
|
|
sha256 = "0qqdmivfwf9jmv5yx90z1fj99nlhnq762lfw6bcxgv74y4l4b4c0";
|
2014-09-15 14:37:24 +01:00
|
|
|
};
|
|
|
|
|
2019-11-23 15:07:18 +00:00
|
|
|
nativeBuildInputs = [ cmake wrapQtAppsHook git qttools which ];
|
2015-09-27 16:28:24 +01:00
|
|
|
buildInputs = [
|
2019-11-23 15:07:18 +00:00
|
|
|
pcre pugixml qtbase libsForQt5.qtkeychain qtmultimedia luaEnv libzip libGLU yajl boost hunspell
|
2015-09-27 16:28:24 +01:00
|
|
|
];
|
2014-09-15 14:37:24 +01:00
|
|
|
|
2019-09-07 12:22:44 +01:00
|
|
|
WITH_FONTS = "NO";
|
|
|
|
WITH_UPDATER = "NO";
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2014-09-15 14:37:24 +01:00
|
|
|
|
2019-09-07 12:22:44 +01:00
|
|
|
installPhase = ''
|
2019-09-12 15:43:09 +01:00
|
|
|
mkdir -pv $out/lib
|
|
|
|
cp 3rdparty/edbee-lib/edbee-lib/qslog/lib/libQsLog.so $out/lib
|
2014-09-15 14:37:24 +01:00
|
|
|
mkdir -pv $out/bin
|
2019-09-07 12:22:44 +01:00
|
|
|
cp src/mudlet $out
|
|
|
|
mkdir -pv $out/share/mudlet
|
|
|
|
cp -r ../src/mudlet-lua/lua $out/share/mudlet/
|
2014-09-15 14:37:24 +01:00
|
|
|
|
2019-09-07 12:22:44 +01:00
|
|
|
mkdir -pv $out/share/applications
|
|
|
|
cp ../mudlet.desktop $out/share/applications/
|
|
|
|
|
|
|
|
mkdir -pv $out/share/pixmaps
|
|
|
|
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" \
|
2019-11-23 15:07:18 +00:00
|
|
|
--prefix LD_LIBRARY_PATH : "${libsForQt5.qtkeychain}/lib/" \
|
2014-09-23 15:01:02 +01:00
|
|
|
--run "cd $out";
|
2014-09-15 14:37:24 +01:00
|
|
|
'';
|
|
|
|
|
2019-09-07 12:22:44 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-09-15 14:37:24 +01:00
|
|
|
description = "Crossplatform mud client";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://mudlet.org/";
|
2019-09-07 12:22:44 +01:00
|
|
|
maintainers = [ maintainers.wyvie maintainers.pstn ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
2014-09-15 14:37:24 +01:00
|
|
|
};
|
|
|
|
}
|