1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 23:20:55 +00:00
nixpkgs/pkgs/games/mudlet/default.nix

63 lines
1.7 KiB
Nix
Raw Normal View History

{ fetchFromGitHub, fetchpatch, stdenv, wrapQtAppsHook, pcre, pugixml, qtbase, qtmultimedia, qttools, yajl, libzip, hunspell
, boost, libGLU, lua, cmake, which, }:
2014-09-15 14:37:24 +01:00
let
luaEnv = lua.withPackages(ps: with ps; [ luazip luafilesystem lrexlib-pcre luasql-sqlite3 lua-yajl luautf8 ]);
in
2014-09-15 14:37:24 +01:00
stdenv.mkDerivation rec {
pname = "mudlet";
version = "4.0.3";
src = fetchFromGitHub {
owner = "Mudlet";
repo = "Mudlet";
rev = "Mudlet-${version}";
fetchSubmodules = true;
sha256 = "18bl4k0qgh47d9k5ipfvypfj1il678c0ws64a8adn8k21jajzkik";
2014-09-15 14:37:24 +01:00
};
patches = [
( fetchpatch {
url = "https://github.com/Mudlet/Mudlet/commit/3c8f12b6d757894d92ec2e2c9b12b91f69e8a3b6.patch";
name = "hunspell-1.7";
sha256 = "09qggls4pzpd8h9h10fbpfd7x3kr7fjp9axdwz98igpwy714n98j";
})
];
nativeBuildInputs = [ cmake wrapQtAppsHook qttools which ];
2015-09-27 16:28:24 +01:00
buildInputs = [
pcre pugixml qtbase qtmultimedia luaEnv libzip libGLU yajl boost hunspell
2015-09-27 16:28:24 +01:00
];
2014-09-15 14:37:24 +01:00
WITH_FONTS = "NO";
WITH_UPDATER = "NO";
enableParallelBuilding = true;
2014-09-15 14:37:24 +01:00
installPhase = ''
2014-09-15 14:37:24 +01:00
mkdir -pv $out/bin
cp src/mudlet $out
mkdir -pv $out/share/mudlet
cp -r ../src/mudlet-lua/lua $out/share/mudlet/
2014-09-15 14:37:24 +01: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 \
--set LUA_CPATH "${luaEnv}/lib/lua/${lua.luaversion}/?.so" \
--prefix LUA_PATH : "$NIX_LUA_PATH" \
--run "cd $out";
2014-09-15 14:37:24 +01:00
'';
meta = with stdenv.lib; {
2014-09-15 14:37:24 +01:00
description = "Crossplatform mud client";
homepage = http://mudlet.org/;
maintainers = [ maintainers.wyvie maintainers.pstn ];
platforms = platforms.linux;
license = licenses.gpl2;
2014-09-15 14:37:24 +01:00
};
}