2014-09-23 13:56:29 +02:00
|
|
|
{ fetchurl, pkgs, stdenv, makeWrapper, qt5, yajl, libzip, hunspell, lua5_1, boost, filesystem }:
|
2014-09-15 15:37:24 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mudlet-${version}";
|
|
|
|
version = "3.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/Mudlet/Mudlet/archive/6bc55dde0499cffab48b0021f27dcff1d57b0b66.zip";
|
|
|
|
sha256 = "c7b9a383d2cf393da730ce07ac8f06478eaec1fdf730054e837e58c598222d38";
|
|
|
|
};
|
|
|
|
|
2014-09-23 13:56:29 +02:00
|
|
|
buildInputs = [ pkgs.unzip qt5 lua5_1 hunspell libzip yajl boost makeWrapper filesystem ];
|
2014-09-15 15:37:24 +02:00
|
|
|
|
|
|
|
configurePhase = "cd src && qmake";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -pv $out
|
|
|
|
mkdir -pv $out/bin
|
|
|
|
cp mudlet $out
|
|
|
|
cp -r mudlet-lua $out
|
|
|
|
|
|
|
|
# ln -s $out/mudlet $out/bin/mudlet
|
|
|
|
makeWrapper $out/mudlet $out/bin/mudlet \
|
2014-09-23 13:56:29 +02:00
|
|
|
--set LUA_CPATH "${filesystem}/lib/lua/5.1/?.so"
|
2014-09-15 15:37:24 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [ ./libs.patch ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Crossplatform mud client";
|
|
|
|
homepage = http://mudlet.org/;
|
2014-09-16 07:13:38 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.wyvie ];
|
2014-09-15 15:37:24 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|