nixpkgs/pkgs/games/scorched3d/default.nix
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00

35 lines
1021 B
Nix

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