nixpkgs/pkgs/games/mudlet/default.nix

41 lines
1.3 KiB
Nix
Raw Normal View History

{ fetchurl, pkgs, stdenv, makeWrapper, qt5, yajl, libzip, hunspell, boost, lua5_1, luafilesystem, luazip, lrexlib, luasqlite3 }:
2014-09-15 14:37:24 +01:00
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 luafilesystem luazip lrexlib luasqlite3 ];
2014-09-15 14:37:24 +01:00
configurePhase = "cd src && qmake";
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 \
--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;
};
}