2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, cmake, python, gettext
|
2017-02-15 07:11:59 +01:00
|
|
|
, boost, libpng, zlib, glew, lua, doxygen, icu
|
2018-07-21 02:44:44 +02:00
|
|
|
, SDL2, SDL2_image, SDL2_mixer, SDL2_net, SDL2_ttf
|
2014-03-29 16:10:03 +01:00
|
|
|
}:
|
2011-04-17 19:55:29 +02:00
|
|
|
|
2017-02-15 07:11:59 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "widelands";
|
2021-02-09 20:47:04 +01:00
|
|
|
version = "21";
|
2011-04-17 19:55:29 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2014-03-29 16:10:03 +01:00
|
|
|
description = "RTS with multiple-goods economy";
|
|
|
|
homepage = "http://widelands.org/";
|
2012-10-05 18:36:36 +02:00
|
|
|
longDescription = ''
|
|
|
|
Widelands is a real time strategy game based on "The Settlers" and "The
|
|
|
|
Settlers II". It has a single player campaign mode, as well as a networked
|
2014-03-29 16:10:03 +01:00
|
|
|
multiplayer mode.
|
2012-10-05 18:36:36 +02:00
|
|
|
'';
|
2014-03-29 16:10:03 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ raskin jcumming ];
|
2013-11-05 00:04:36 +01:00
|
|
|
hydraPlatforms = [];
|
2011-04-17 19:55:29 +02:00
|
|
|
};
|
2014-03-29 16:10:03 +01:00
|
|
|
|
2017-02-15 07:11:59 +01:00
|
|
|
patches = [
|
|
|
|
./bincmake.patch
|
|
|
|
];
|
2014-03-29 16:10:03 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-09 20:47:04 +01:00
|
|
|
url = "https://launchpad.net/widelands/build${version}/build${version}/+download/widelands-build${version}-source.tar.gz";
|
|
|
|
sha256 = "sha256-YB4OTG+Rs/sOzizRuD7PsCNEobkZT7tw7z9w4GmU41c=";
|
2011-04-17 19:55:29 +02:00
|
|
|
};
|
|
|
|
|
2014-03-29 16:10:03 +01:00
|
|
|
preConfigure = ''
|
|
|
|
cmakeFlags="
|
2017-02-15 07:11:59 +01:00
|
|
|
-DWL_INSTALL_BASEDIR=$out
|
|
|
|
-DWL_INSTALL_DATADIR=$out/share/widelands
|
|
|
|
-DWL_INSTALL_BINARY=$out/bin
|
2014-03-29 16:10:03 +01:00
|
|
|
"
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake python gettext ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2017-02-15 07:11:59 +01:00
|
|
|
boost libpng zlib glew lua doxygen icu
|
|
|
|
SDL2 SDL2_image SDL2_mixer SDL2_net SDL2_ttf
|
2014-03-29 16:10:03 +01:00
|
|
|
];
|
|
|
|
|
2017-02-15 07:11:59 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p "$out/share/applications/"
|
2021-02-09 20:47:04 +01:00
|
|
|
cp -v "../xdg/org.widelands.Widelands.desktop" "$out/share/applications/"
|
2017-02-15 07:11:59 +01:00
|
|
|
'';
|
2014-03-29 16:10:03 +01:00
|
|
|
}
|