Skip to content

Commit

Permalink
wesnoth: disable input frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
abbradar committed Dec 10, 2016
1 parent b520a91 commit edaac2c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pkgs/games/wesnoth/default.nix
@@ -1,6 +1,6 @@
{ stdenv, fetchurl, cmake, pkgconfig, SDL, SDL_image, SDL_mixer, SDL_net, SDL_ttf
, pango, gettext, boost, freetype, libvorbis, fribidi, dbus, libpng, pcre
, enableTools ? false
, makeWrapper, enableTools ? false
}:

stdenv.mkDerivation rec {
Expand All @@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
sha256 = "0kifp6g1dsr16m6ngjq2hx19h851fqg326ps3krnhpyix963h3x5";
};

nativeBuildInputs = [ cmake pkgconfig ];
nativeBuildInputs = [ cmake pkgconfig makeWrapper ];

buildInputs = [ SDL SDL_image SDL_mixer SDL_net SDL_ttf pango gettext boost
libvorbis fribidi dbus libpng pcre ];
Expand All @@ -23,6 +23,13 @@ stdenv.mkDerivation rec {

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; {
description = "The Battle for Wesnoth, a free, turn-based strategy game with a fantasy theme";
longDescription = ''
Expand Down

0 comments on commit edaac2c

Please sign in to comment.