1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/games/scorched3d/default.nix

35 lines
1,023 B
Nix
Raw Normal View History

2015-09-05 19:10:19 +01:00
{ stdenv, fetchurl, mesa, glew, pkgconfig, openalSoft, freealut, wxGTK, libogg
, freetype, libvorbis, fftwSinglePrec, SDL, SDL_net, expat, libjpeg, libpng }:
2015-09-05 19:10:19 +01:00
stdenv.mkDerivation rec {
version = "44";
name = "scorched3d-${version}";
src = fetchurl {
2015-09-05 19:10:19 +01:00
url = "mirror://sourceforge/scorched3d/Scorched3D-${version}-src.tar.gz";
sha256 = "1fldi9pn7cz6hc9h70pacgb7sbykzcac44yp3pkhn0qh4axj10qw";
};
buildInputs =
2015-09-05 19:10:19 +01:00
[ mesa glew openalSoft freealut wxGTK libogg freetype libvorbis
SDL SDL_net expat libjpeg libpng fftwSinglePrec
2015-09-05 19:10:19 +01:00
];
nativeBuildInputs = [ pkgconfig ];
patches = [ ./file-existence.patch ];
sourceRoot = "scorched";
configureFlags = [ "--with-fftw=${fftwSinglePrec.dev}" ];
2015-09-05 19:10:19 +01:00
NIX_LDFLAGS = [ "-lopenal" ];
2015-09-05 19:10:19 +01:00
meta = with stdenv.lib; {
2016-11-23 14:49:18 +00:00
homepage = "http://scorched3d.co.uk/";
description = "3D Clone of the classic Scorched Earth";
2015-09-05 19:10:19 +01:00
license = licenses.gpl2Plus;
platforms = platforms.linux; # maybe more
maintainers = with maintainers; [ abbradar ];
};
}