2015-09-05 21:10:19 +03:00
|
|
|
{ stdenv, fetchurl, mesa, glew, pkgconfig, openalSoft, freealut, wxGTK, libogg
|
|
|
|
, freetype, libvorbis, fftwSinglePrec, SDL, SDL_net, expat, libjpeg, libpng }:
|
2009-04-17 02:50:36 +04:00
|
|
|
|
2015-09-05 21:10:19 +03:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "44";
|
|
|
|
name = "scorched3d-${version}";
|
2009-04-17 02:50:36 +04:00
|
|
|
src = fetchurl {
|
2015-09-05 21:10:19 +03:00
|
|
|
url = "mirror://sourceforge/scorched3d/Scorched3D-${version}-src.tar.gz";
|
|
|
|
sha256 = "1fldi9pn7cz6hc9h70pacgb7sbykzcac44yp3pkhn0qh4axj10qw";
|
2009-04-17 02:50:36 +04:00
|
|
|
};
|
|
|
|
|
2011-09-19 09:17:00 +04:00
|
|
|
buildInputs =
|
2015-09-05 21:10:19 +03:00
|
|
|
[ mesa glew openalSoft freealut wxGTK libogg freetype libvorbis
|
2016-05-11 16:29:13 +03:00
|
|
|
SDL SDL_net expat libjpeg libpng fftwSinglePrec
|
2015-09-05 21:10:19 +03:00
|
|
|
];
|
2009-04-17 02:50:36 +04:00
|
|
|
|
2012-12-28 22:20:09 +04:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2009-04-17 02:50:36 +04:00
|
|
|
|
2011-09-19 09:17:00 +04:00
|
|
|
patches = [ ./file-existence.patch ];
|
2009-04-17 02:50:36 +04:00
|
|
|
|
2011-09-19 09:17:00 +04:00
|
|
|
sourceRoot = "scorched";
|
|
|
|
|
2016-04-16 19:51:13 +03:00
|
|
|
configureFlags = [ "--with-fftw=${fftwSinglePrec.dev}" ];
|
2011-09-19 09:17:00 +04:00
|
|
|
|
2015-09-05 21:10:19 +03:00
|
|
|
NIX_LDFLAGS = [ "-lopenal" ];
|
2009-04-17 02:50:36 +04:00
|
|
|
|
2015-09-05 21:10:19 +03:00
|
|
|
meta = with stdenv.lib; {
|
2009-04-17 02:50:36 +04:00
|
|
|
homepage = http://scorched3d.co.uk/;
|
|
|
|
description = "3D Clone of the classic Scorched Earth";
|
2015-09-05 21:10:19 +03:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux; # maybe more
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2009-04-17 02:50:36 +04:00
|
|
|
};
|
|
|
|
}
|