nixpkgs/pkgs/games/privateer/default.nix
Eelco Dolstra c556a6ea46 * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless
function, so obsolete it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
2012-01-18 20:16:00 +00:00

38 lines
1.2 KiB
Nix

{ stdenv, fetchsvn, boost, cmake, ffmpeg, freeglut, glib,
gtk, libjpeg, libpng, libpthreadstubs, libvorbis, libXau, libXdmcp,
libXmu, mesa, openal, pixman, pkgconfig, python27Full, SDL }:
stdenv.mkDerivation {
name = "privateer-1.03";
src = fetchsvn {
#url = "mirror://sourceforge/project/privateer/Wing%20Commander%20Privateer/Privateer%20Gemini%20Gold%201.03/PrivateerGold1.03.bz2.bin";
url = "https://privateer.svn.sourceforge.net/svnroot/privateer/privgold/trunk/engine";
rev = 294;
sha256 = "e1759087d4565d3fc95e5c87d0f6ddf36b2cd5befec5695ec56ed5f3cd144c63";
};
buildInputs =
[ boost cmake ffmpeg freeglut glib gtk libjpeg libpng
libpthreadstubs libvorbis libXau libXdmcp libXmu mesa openal
pixman pkgconfig python27Full SDL ];
patches = [ ./0001-fix-VSFile-constructor.patch ];
preConfigure = ''
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags gtk+-2.0)"
'';
installPhase = ''
mkdir -p $out/bin
cp vegastrike $out/bin
cp vegaserver $out/bin
'';
meta = {
homepage = http://privateer.sourceforge.net/;
longDescription = "";
maintainers = with stdenv.lib.maintainers; [ chaoflow ];
};
}