2021-01-17 05:49:22 +00:00
|
|
|
{ lib, stdenv, fetchurl, libGLU, libGL, glew, pkg-config, openalSoft, freealut, wxGTK, libogg
|
2015-09-05 18:10:19 +00:00
|
|
|
, freetype, libvorbis, fftwSinglePrec, SDL, SDL_net, expat, libjpeg, libpng }:
|
2009-04-16 22:50:36 +00:00
|
|
|
|
2015-09-05 18:10:19 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "44";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "scorched3d";
|
2009-04-16 22:50:36 +00:00
|
|
|
src = fetchurl {
|
2015-09-05 18:10:19 +00:00
|
|
|
url = "mirror://sourceforge/scorched3d/Scorched3D-${version}-src.tar.gz";
|
|
|
|
sha256 = "1fldi9pn7cz6hc9h70pacgb7sbykzcac44yp3pkhn0qh4axj10qw";
|
2009-04-16 22:50:36 +00:00
|
|
|
};
|
|
|
|
|
2011-09-19 05:17:00 +00:00
|
|
|
buildInputs =
|
2019-11-10 16:44:34 +00:00
|
|
|
[ libGLU libGL glew openalSoft freealut wxGTK libogg freetype libvorbis
|
2016-05-11 13:29:13 +00:00
|
|
|
SDL SDL_net expat libjpeg libpng fftwSinglePrec
|
2015-09-05 18:10:19 +00:00
|
|
|
];
|
2009-04-16 22:50:36 +00:00
|
|
|
|
2021-01-17 05:49:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2009-04-16 22:50:36 +00:00
|
|
|
|
2017-09-08 13:08:00 +00:00
|
|
|
patches = [
|
|
|
|
./file-existence.patch
|
|
|
|
(fetchurl {
|
|
|
|
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/games-strategy/scorched3d/files/scorched3d-44-fix-c++14.patch?id=1bbcfc9ae3dfdfcbdd35151cb7b6050776215e4d";
|
|
|
|
sha256 = "1farmjxbc2wm4scsdbdnvh29fipnb6mp6z85hxz4bx6n9kbc8y7n";
|
|
|
|
})
|
|
|
|
];
|
2009-04-16 22:50:36 +00:00
|
|
|
|
2011-09-19 05:17:00 +00:00
|
|
|
sourceRoot = "scorched";
|
|
|
|
|
2016-04-16 16:51:13 +00:00
|
|
|
configureFlags = [ "--with-fftw=${fftwSinglePrec.dev}" ];
|
2011-09-19 05:17:00 +00:00
|
|
|
|
2019-10-30 11:34:47 +00:00
|
|
|
NIX_LDFLAGS = "-lopenal";
|
2009-04-16 22:50:36 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://scorched3d.co.uk/";
|
2009-04-16 22:50:36 +00:00
|
|
|
description = "3D Clone of the classic Scorched Earth";
|
2015-09-05 18:10:19 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux; # maybe more
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2009-04-16 22:50:36 +00:00
|
|
|
};
|
|
|
|
}
|