3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/mudlet/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

106 lines
2 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, cmake
, git
, pkg-config
, qttools
, which
, wrapQtAppsHook
, boost
, hunspell
, libGLU
, libsForQt5
, libsecret
, libzip
, lua
, pcre
, pugixml
, qtbase
, qtmultimedia
, yajl
}:
2014-09-15 14:37:24 +01:00
let
2021-09-11 22:56:43 +01:00
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.15.1";
src = fetchFromGitHub {
owner = "Mudlet";
repo = "Mudlet";
rev = "Mudlet-${version}";
fetchSubmodules = true;
hash = "sha256-GnTQc0Jh4YaQnfy7fYsTCACczlzWCQ+auKYoU9ET83M=";
2014-09-15 14:37:24 +01:00
};
nativeBuildInputs = [
cmake
git
pkg-config
qttools
which
wrapQtAppsHook
];
2015-09-27 16:28:24 +01:00
buildInputs = [
boost
hunspell
libGLU
libsForQt5.qtkeychain
libsecret
libzip
luaEnv
pcre
pugixml
qtbase
qtmultimedia
yajl
2015-09-27 16:28:24 +01:00
];
2014-09-15 14:37:24 +01:00
2022-07-17 15:42:15 +01:00
cmakeFlags = [
# RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
"-DCMAKE_SKIP_BUILD_RPATH=ON"
];
WITH_FONTS = "NO";
WITH_UPDATER = "NO";
installPhase = ''
runHook preInstall
2019-09-12 15:43:09 +01:00
mkdir -pv $out/lib
cp 3rdparty/edbee-lib/edbee-lib/qslog/lib/libQsLog.so $out/lib
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" \
2019-11-23 15:07:18 +00:00
--prefix LD_LIBRARY_PATH : "${libsForQt5.qtkeychain}/lib/" \
--chdir "$out";
runHook postInstall
2014-09-15 14:37:24 +01:00
'';
meta = with lib; {
2014-09-15 14:37:24 +01:00
description = "Crossplatform mud client";
homepage = "https://www.mudlet.org/";
maintainers = [ maintainers.wyvie maintainers.pstn ];
platforms = platforms.linux;
license = licenses.gpl2Plus;
2014-09-15 14:37:24 +01:00
};
}