2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoconf, automake
|
2015-07-14 11:01:01 +02:00
|
|
|
, zlib, curl, gnutls, fribidi, libpng, SDL, SDL_gfx, SDL_image, SDL_mixer
|
2021-01-17 06:49:22 +01:00
|
|
|
, SDL_net, SDL_ttf, libunwind, libX11, xorgproto, libxml2, pkg-config
|
2015-07-14 11:01:01 +02:00
|
|
|
, gettext, intltool, libtool, perl
|
|
|
|
}:
|
2011-02-16 23:19:59 +01:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "warmux";
|
2018-10-20 00:25:22 +02:00
|
|
|
version = "unstable-2017-10-20";
|
2011-02-16 23:19:59 +01:00
|
|
|
|
2018-10-20 00:25:22 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fluxer";
|
|
|
|
repo = "warmux";
|
|
|
|
rev = "8f81d4fc309a548ae89a068c2dde27b7e7ef8851";
|
|
|
|
sha256 = "1hvzglsmp75xiqqb0k75qjz4jwi8kl3fhn8zfsz53hhhqmbw6wkr";
|
2015-07-14 11:01:01 +02:00
|
|
|
};
|
2011-02-16 23:19:59 +01:00
|
|
|
|
2018-10-20 00:25:22 +02:00
|
|
|
preConfigure = "patchShebangs autogen.sh && ./autogen.sh";
|
2016-04-16 19:50:01 +02:00
|
|
|
configureFlagsArray = ("CFLAGS=-include ${zlib.dev}/include/zlib.h");
|
2012-02-16 18:56:14 +01:00
|
|
|
|
2018-10-20 00:25:22 +02:00
|
|
|
nativeBuildInputs = [
|
2021-01-17 06:49:22 +01:00
|
|
|
autoconf automake gettext intltool libtool pkg-config
|
2018-10-20 00:25:22 +02:00
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
zlib curl gnutls fribidi libpng SDL SDL_gfx SDL_image SDL_mixer
|
2018-12-31 04:40:47 +01:00
|
|
|
SDL_net SDL_ttf libunwind libX11 xorgproto libxml2 perl
|
2018-10-20 00:25:22 +02:00
|
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
2013-12-20 15:57:22 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-10-20 00:25:22 +02:00
|
|
|
description = "Ballistics turn-based battle game between teams - unofficial copy";
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
2015-07-14 11:01:01 +02:00
|
|
|
platforms = platforms.linux;
|
2018-10-20 00:25:22 +02:00
|
|
|
license = with licenses; [ gpl2 ufl ];
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/fluxer/warmux";
|
2011-02-16 23:19:59 +01:00
|
|
|
};
|
2015-07-14 11:01:01 +02:00
|
|
|
}
|