at v206 44 lines 1.3 kB view raw
1{ fetchurl, pkgs, stdenv, makeWrapper, qtbase, yajl, libzip, hunspell 2, boost, lua5_1, luafilesystem, luazip, lrexlib, luasqlite3 }: 3 4stdenv.mkDerivation rec { 5 name = "mudlet-${version}"; 6 version = "3.0.0-delta"; 7 8 src = fetchurl { 9 url = "https://github.com/Mudlet/Mudlet/archive/Mudlet-${version}.tar.gz"; 10 sha256 = "08fhqd323kgz5s17ac5z9dhkjxcmwvcmvhzy0x1vw4rayhijfrd7"; 11 }; 12 13 buildInputs = [ 14 pkgs.unzip qtbase lua5_1 hunspell libzip yajl boost makeWrapper 15 luafilesystem luazip lrexlib luasqlite3 16 ]; 17 18 configurePhase = "cd src && qmake"; 19 20 installPhase = let 21 luaZipPath = "${luazip}/lib/lua/5.1/?.so"; 22 luaFileSystemPath = "${luafilesystem}/lib/lua/5.1/?.so"; 23 lrexlibPath = "${lrexlib}/lib/lua/5.1/?.so"; 24 luasqlitePath = "${luasqlite3}/lib/lua/5.1/?.so"; 25 in '' 26 mkdir -pv $out/bin 27 cp mudlet $out 28 cp -r mudlet-lua $out 29 30 makeWrapper $out/mudlet $out/bin/mudlet \ 31 --set LUA_CPATH "\"${luaFileSystemPath};${luaZipPath};${lrexlibPath};${luasqlitePath}\"" \ 32 --run "cd $out"; 33 ''; 34 35 patches = [ ./libs.patch ]; 36 37 meta = { 38 description = "Crossplatform mud client"; 39 homepage = http://mudlet.org/; 40 maintainers = [ stdenv.lib.maintainers.wyvie ]; 41 platforms = stdenv.lib.platforms.linux; 42 license = stdenv.lib.licenses.gpl2; 43 }; 44}