3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/megaglest/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

50 lines
1.6 KiB
Nix

{ stdenv, fetchgit, cmake, pkgconfig, git, curl, SDL, xercesc, openal, lua, vlc
, libjpeg, wxGTK, cppunit, ftgl, glew, libogg, libvorbis, buildEnv, libpng
, fontconfig, freetype, xorg, makeWrapper, bash, which, gnome3, mesa_glu, glib
}:
let
version = "3.9.2";
lib-env = buildEnv {
name = "megaglest-lib-env";
paths = [ SDL xorg.libSM xorg.libICE xorg.libX11 xorg.libXext
xercesc openal libvorbis lua libjpeg libpng curl fontconfig ftgl freetype
stdenv.cc.cc glew mesa_glu wxGTK ];
};
path-env = buildEnv {
name = "megaglest-path-env";
paths = [ bash which gnome3.zenity ];
};
in
stdenv.mkDerivation {
name = "megaglest-${version}";
src = fetchgit {
url = "git://github.com/MegaGlest/megaglest-source";
rev = "refs/tags/${version}";
sha256 = "1406ns1533x5678d91s2xxxv19q7r238zsaxr37c6mv5jrx7s5jv";
};
buildInputs = [ cmake pkgconfig git curl SDL xercesc openal lua libpng libjpeg vlc wxGTK
glib cppunit fontconfig freetype ftgl glew libogg libvorbis makeWrapper mesa_glu ];
configurePhase = ''
cmake -DCMAKE_INSTALL_PREFIX=$out -DBUILD_MEGAGLEST_TESTS=ON
'';
postInstall = ''
for i in $out/bin/*; do
wrapProgram $i \
--prefix LD_LIBRARY_PATH ":" "${lib-env}/lib" \
--prefix PATH ":" "${path-env}/bin"
done
'';
meta = {
description = "MegaGlest is an entertaining free (freeware and free software) and open source cross-platform 3D real-time strategy (RTS) game";
license = stdenv.lib.licenses.gpl3;
homepage = http://megaglest.org/;
maintainers = [ stdenv.lib.maintainers.matejc ];
platforms = stdenv.lib.platforms.linux;
};
}