Skip to content
Permalink
Browse files

wip

  • Loading branch information
peterhoeg committed May 10, 2018
1 parent 1d9330d commit 7161071bc02cda97c0c099cf6b03f1d231048d5b
Showing with 11 additions and 10 deletions.
  1. +11 −10 pkgs/games/wesnoth/default.nix
@@ -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";

0 comments on commit 7161071

Please sign in to comment.
You can’t perform that action at this time.