mudlet: 3.0.0-delta -> 4.0.3
Fixed broken package.
This commit is contained in:
parent
2787d4160c
commit
3b5b9a73f5
@ -1,46 +1,62 @@
|
|||||||
{ fetchurl, unzip, stdenv, makeWrapper, qtbase, yajl, libzip, hunspell
|
{ fetchFromGitHub, fetchpatch, stdenv, wrapQtAppsHook, pcre, pugixml, qtbase, qtmultimedia, qttools, yajl, libzip, hunspell
|
||||||
, boost, lua5_1, luafilesystem, luazip, lrexlib-pcre, luasql-sqlite3, qmake }:
|
, boost, libGLU, lua, cmake, which, }:
|
||||||
|
|
||||||
|
let
|
||||||
|
luaEnv = lua.withPackages(ps: with ps; [ luazip luafilesystem lrexlib-pcre luasql-sqlite3 lua-yajl luautf8 ]);
|
||||||
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "mudlet";
|
pname = "mudlet";
|
||||||
version = "3.0.0-delta";
|
version = "4.0.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/Mudlet/Mudlet/archive/Mudlet-${version}.tar.gz";
|
owner = "Mudlet";
|
||||||
sha256 = "08fhqd323kgz5s17ac5z9dhkjxcmwvcmvhzy0x1vw4rayhijfrd7";
|
repo = "Mudlet";
|
||||||
|
rev = "Mudlet-${version}";
|
||||||
|
fetchSubmodules = true;
|
||||||
|
sha256 = "18bl4k0qgh47d9k5ipfvypfj1il678c0ws64a8adn8k21jajzkik";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper qmake ];
|
patches = [
|
||||||
buildInputs = [
|
( fetchpatch {
|
||||||
unzip qtbase lua5_1 hunspell libzip yajl boost
|
url = "https://github.com/Mudlet/Mudlet/commit/3c8f12b6d757894d92ec2e2c9b12b91f69e8a3b6.patch";
|
||||||
luafilesystem luazip lrexlib-pcre luasql-sqlite3
|
name = "hunspell-1.7";
|
||||||
|
sha256 = "09qggls4pzpd8h9h10fbpfd7x3kr7fjp9axdwz98igpwy714n98j";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
preConfigure = "cd src";
|
nativeBuildInputs = [ cmake wrapQtAppsHook qttools which ];
|
||||||
|
buildInputs = [
|
||||||
|
pcre pugixml qtbase qtmultimedia luaEnv libzip libGLU yajl boost hunspell
|
||||||
|
];
|
||||||
|
|
||||||
installPhase = let
|
WITH_FONTS = "NO";
|
||||||
luaZipPath = "${luazip}/lib/lua/5.1/?.so";
|
WITH_UPDATER = "NO";
|
||||||
luaFileSystemPath = "${luafilesystem}/lib/lua/5.1/?.so";
|
|
||||||
lrexlibPath = "${lrexlib-pcre}/lib/lua/5.1/?.so";
|
enableParallelBuilding = true;
|
||||||
luasqlitePath = "${luasql-sqlite3}/lib/lua/5.1/?.so";
|
|
||||||
in ''
|
installPhase = ''
|
||||||
mkdir -pv $out/bin
|
mkdir -pv $out/bin
|
||||||
cp mudlet $out
|
cp src/mudlet $out
|
||||||
cp -r mudlet-lua $out
|
mkdir -pv $out/share/mudlet
|
||||||
|
cp -r ../src/mudlet-lua/lua $out/share/mudlet/
|
||||||
|
|
||||||
makeWrapper $out/mudlet $out/bin/mudlet \
|
mkdir -pv $out/share/applications
|
||||||
--set LUA_CPATH "${luaFileSystemPath};${luaZipPath};${lrexlibPath};${luasqlitePath}" \
|
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";
|
--run "cd $out";
|
||||||
'';
|
'';
|
||||||
|
|
||||||
patches = [ ./libs.patch ];
|
meta = with stdenv.lib; {
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Crossplatform mud client";
|
description = "Crossplatform mud client";
|
||||||
homepage = http://mudlet.org/;
|
homepage = http://mudlet.org/;
|
||||||
maintainers = [ stdenv.lib.maintainers.wyvie ];
|
maintainers = [ maintainers.wyvie maintainers.pstn ];
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
license = stdenv.lib.licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
broken = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
--- 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.6 \
|
|
||||||
-L/usr/local/lib/ \
|
|
||||||
-lyajl \
|
|
||||||
-lGLU \
|
|
@ -22122,7 +22122,7 @@ in
|
|||||||
mrrescue = callPackage ../games/mrrescue { };
|
mrrescue = callPackage ../games/mrrescue { };
|
||||||
|
|
||||||
mudlet = libsForQt5.callPackage ../games/mudlet {
|
mudlet = libsForQt5.callPackage ../games/mudlet {
|
||||||
inherit (lua51Packages) luafilesystem lrexlib-pcre luazip luasql-sqlite3;
|
lua = lua5_1;
|
||||||
};
|
};
|
||||||
|
|
||||||
n2048 = callPackage ../games/n2048 {};
|
n2048 = callPackage ../games/n2048 {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user