Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
wip
  • Loading branch information
peterhoeg committed May 10, 2018
1 parent 1d9330d commit 7161071
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions pkgs/games/wesnoth/default.nix
Expand Up @@ -5,30 +5,31 @@

stdenv.mkDerivation rec {
pname = "wesnoth";
version = "1.12.6";

version = "1.14.1";
name = "${pname}-${version}";

src = fetchurl {
url = "mirror://sourceforge/sourceforge/${pname}/${name}.tar.bz2";
sha256 = "0kifp6g1dsr16m6ngjq2hx19h851fqg326ps3krnhpyix963h3x5";
sha256 = "011116g1dsr16m6ngjq2hx19h851fqg326ps3krnhpyix963h3x5";
};

nativeBuildInputs = [ cmake pkgconfig makeWrapper ];

buildInputs = [ SDL SDL_image SDL_mixer SDL_net SDL_ttf pango gettext boost
libvorbis fribidi dbus libpng pcre ];
buildInputs = [
SDL2 pango gettext boost # SDL_image SDL_mixer SDL_net SDL_ttf
libvorbis fribidi dbus libpng pcre
];

cmakeFlags = [ "-DENABLE_TOOLS=${if enableTools then "ON" else "OFF"}" ];

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
'';
# 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";
Expand Down

0 comments on commit 7161071

Please sign in to comment.