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