2016-04-17 00:51:15 +01:00
|
|
|
{ fetchurl, unzip, stdenv, makeWrapper, qtbase, yajl, libzip, hunspell
|
|
|
|
, boost, lua5_1, luafilesystem, luazip, lrexlib, luasqlite3, qmakeHook }:
|
2014-09-15 14:37:24 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mudlet-${version}";
|
2015-01-31 14:08:12 +00:00
|
|
|
version = "3.0.0-delta";
|
2014-09-15 14:37:24 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-01-31 14:08:12 +00:00
|
|
|
url = "https://github.com/Mudlet/Mudlet/archive/Mudlet-${version}.tar.gz";
|
|
|
|
sha256 = "08fhqd323kgz5s17ac5z9dhkjxcmwvcmvhzy0x1vw4rayhijfrd7";
|
2014-09-15 14:37:24 +01:00
|
|
|
};
|
|
|
|
|
2015-09-27 16:28:24 +01:00
|
|
|
buildInputs = [
|
2016-04-17 00:51:15 +01:00
|
|
|
unzip qtbase lua5_1 hunspell libzip yajl boost makeWrapper
|
|
|
|
luafilesystem luazip lrexlib luasqlite3 qmakeHook
|
2015-09-27 16:28:24 +01:00
|
|
|
];
|
2014-09-15 14:37:24 +01:00
|
|
|
|
2016-04-17 00:51:15 +01:00
|
|
|
preConfigure = "cd src";
|
2014-09-15 14:37:24 +01:00
|
|
|
|
2014-09-23 15:01:02 +01:00
|
|
|
installPhase = let
|
|
|
|
luaZipPath = "${luazip}/lib/lua/5.1/?.so";
|
|
|
|
luaFileSystemPath = "${luafilesystem}/lib/lua/5.1/?.so";
|
|
|
|
lrexlibPath = "${lrexlib}/lib/lua/5.1/?.so";
|
|
|
|
luasqlitePath = "${luasqlite3}/lib/lua/5.1/?.so";
|
|
|
|
in ''
|
2014-09-15 14:37:24 +01:00
|
|
|
mkdir -pv $out/bin
|
|
|
|
cp mudlet $out
|
|
|
|
cp -r mudlet-lua $out
|
|
|
|
|
|
|
|
makeWrapper $out/mudlet $out/bin/mudlet \
|
2014-09-23 15:01:02 +01:00
|
|
|
--set LUA_CPATH "\"${luaFileSystemPath};${luaZipPath};${lrexlibPath};${luasqlitePath}\"" \
|
|
|
|
--run "cd $out";
|
2014-09-15 14:37:24 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [ ./libs.patch ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Crossplatform mud client";
|
|
|
|
homepage = http://mudlet.org/;
|
2014-09-16 06:13:38 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.wyvie ];
|
2014-09-15 14:37:24 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2016-05-09 15:50:01 +01:00
|
|
|
broken = true;
|
2014-09-15 14:37:24 +01:00
|
|
|
};
|
|
|
|
}
|