wesnoth: disable input frameworks
This commit is contained in:
parent
b520a91efc
commit
edaac2c3ff
|
@ -1,6 +1,6 @@
|
||||||
{ stdenv, fetchurl, cmake, pkgconfig, SDL, SDL_image, SDL_mixer, SDL_net, SDL_ttf
|
{ stdenv, fetchurl, cmake, pkgconfig, SDL, SDL_image, SDL_mixer, SDL_net, SDL_ttf
|
||||||
, pango, gettext, boost, freetype, libvorbis, fribidi, dbus, libpng, pcre
|
, pango, gettext, boost, freetype, libvorbis, fribidi, dbus, libpng, pcre
|
||||||
, enableTools ? false
|
, makeWrapper, enableTools ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "0kifp6g1dsr16m6ngjq2hx19h851fqg326ps3krnhpyix963h3x5";
|
sha256 = "0kifp6g1dsr16m6ngjq2hx19h851fqg326ps3krnhpyix963h3x5";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkgconfig ];
|
nativeBuildInputs = [ cmake pkgconfig makeWrapper ];
|
||||||
|
|
||||||
buildInputs = [ SDL SDL_image SDL_mixer SDL_net SDL_ttf pango gettext boost
|
buildInputs = [ SDL SDL_image SDL_mixer SDL_net SDL_ttf pango gettext boost
|
||||||
libvorbis fribidi dbus libpng pcre ];
|
libvorbis fribidi dbus libpng pcre ];
|
||||||
|
@ -23,6 +23,13 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
# Wesnoth doesn't support input frameworks and Unicode input breaks when they are enabled.
|
||||||
|
postInstall = ''
|
||||||
|
for i in $out/bin/*; do
|
||||||
|
wrapProgram "$i" --unset XMODIFIERS
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "The Battle for Wesnoth, a free, turn-based strategy game with a fantasy theme";
|
description = "The Battle for Wesnoth, a free, turn-based strategy game with a fantasy theme";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
|
Loading…
Reference in a new issue