new package: mudlet-3.0

Closes #4095
This commit is contained in:
wyvie 2014-09-15 17:37:24 +04:00 committed by Mateusz Kowalczyk
parent be42f49499
commit c891dd2719
3 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{ fetchurl, pkgs, stdenv, makeWrapper, qt5, yajl, libzip, hunspell, lua5_1, boost, lua51_filesystem }:
stdenv.mkDerivation rec {
name = "mudlet-${version}";
version = "3.0";
src = fetchurl {
url = "https://github.com/Mudlet/Mudlet/archive/6bc55dde0499cffab48b0021f27dcff1d57b0b66.zip";
sha256 = "c7b9a383d2cf393da730ce07ac8f06478eaec1fdf730054e837e58c598222d38";
};
buildInputs = [ pkgs.unzip qt5 lua5_1 hunspell libzip yajl boost makeWrapper lua51_filesystem ];
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 \
--set LUA_CPATH "${lua51_filesystem}/lib/lua/5.1/?.so"
'';
patches = [ ./libs.patch ];
meta = {
description = "Crossplatform mud client";
homepage = http://mudlet.org/;
platforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.gpl2;
};
}

View File

@ -0,0 +1,13 @@
--- a/src/src.pro 2014-09-05 12:51:09.000000000 +0400
+++ b/src/src.pro 2014-09-15 16:54:34.812560065 +0400
@@ -85,8 +85,8 @@
# Again according to FHS /usr/local/share/games is the corresponding place for locally built games documentation:
isEmpty( DOCDIR ) DOCDIR = $${DATAROOTDIR}/doc/mudlet
LIBS += -lpcre \
- -llua5.1 \
- -lhunspell \
+ -llua \
+ -lhunspell-1.3 \
-L/usr/local/lib/ \
-lyajl \
-lGLU \

View File

@ -9652,6 +9652,8 @@ let
mrxvt = callPackage ../applications/misc/mrxvt { };
mudlet = callPackage ../games/mudlet { };
multisync = callPackage ../applications/misc/multisync {
inherit (gnome) ORBit2 libbonobo libgnomeui GConf;
};