summary refs log tree commit diff
path: root/pkgs/games/wesnoth
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-12-10 12:13:31 +0300
committerNikolay Amiantov <ab@fmap.me>2016-12-10 12:27:43 +0300
commitedaac2c3ff41a12383e85557746b6097bfbefccc (patch)
tree431688edfdda529d9e2f8619142a41ca88aa0288 /pkgs/games/wesnoth
parentb520a91efc37e825f835faa61a07b5edd9d4e4ce (diff)
downloadnixpkgs-edaac2c3ff41a12383e85557746b6097bfbefccc.tar
nixpkgs-edaac2c3ff41a12383e85557746b6097bfbefccc.tar.gz
nixpkgs-edaac2c3ff41a12383e85557746b6097bfbefccc.tar.bz2
nixpkgs-edaac2c3ff41a12383e85557746b6097bfbefccc.tar.lz
nixpkgs-edaac2c3ff41a12383e85557746b6097bfbefccc.tar.xz
nixpkgs-edaac2c3ff41a12383e85557746b6097bfbefccc.tar.zst
nixpkgs-edaac2c3ff41a12383e85557746b6097bfbefccc.zip
wesnoth: disable input frameworks
Diffstat (limited to 'pkgs/games/wesnoth')
-rw-r--r--pkgs/games/wesnoth/default.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/games/wesnoth/default.nix b/pkgs/games/wesnoth/default.nix
index a7352f0a75c..7e5cdae57fa 100644
--- a/pkgs/games/wesnoth/default.nix
+++ b/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 {
@@ -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 ];
@@ -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 = ''