2012-01-04 23:05:51 +00:00
|
|
|
{ stdenv, fetchsvn, boost, cmake, ffmpeg, freeglut, glib,
|
2016-09-11 22:24:51 +01:00
|
|
|
gtk2, libjpeg, libpng, libpthreadstubs, libvorbis, libXau, libXdmcp,
|
2018-02-24 13:12:44 +00:00
|
|
|
libXmu, libGLU_combined, openal, pixman, pkgconfig, python27, SDL }:
|
2012-01-04 23:05:51 +00:00
|
|
|
|
|
|
|
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 =
|
2016-09-11 22:24:51 +01:00
|
|
|
[ boost cmake ffmpeg freeglut glib gtk2 libjpeg libpng
|
2018-02-24 13:12:44 +00:00
|
|
|
libpthreadstubs libvorbis libXau libXdmcp libXmu libGLU_combined openal
|
2016-10-13 21:11:30 +01:00
|
|
|
pixman pkgconfig python27 SDL ];
|
2012-01-04 23:05:51 +00:00
|
|
|
|
|
|
|
patches = [ ./0001-fix-VSFile-constructor.patch ];
|
|
|
|
|
2012-01-05 12:23:49 +00:00
|
|
|
preConfigure = ''
|
|
|
|
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags gtk+-2.0)"
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin
|
2012-01-05 12:23:49 +00:00
|
|
|
cp vegastrike $out/bin
|
|
|
|
cp vegaserver $out/bin
|
|
|
|
'';
|
2015-08-13 13:25:26 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2012-01-04 23:05:51 +00:00
|
|
|
homepage = http://privateer.sourceforge.net/;
|
2015-08-13 13:25:26 +01:00
|
|
|
description = "Adventure space flight simulation computer game";
|
|
|
|
license = licenses.gpl2Plus; # and a special license for art data
|
|
|
|
# https://sourceforge.net/p/privateer/code/HEAD/tree/privgold/trunk/data/art-license.txt
|
|
|
|
|
|
|
|
maintainers = with maintainers; [ chaoflow ];
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
|
|
|
hydraPlatforms = [];
|
|
|
|
broken = true; # it won't build
|
2012-01-04 23:05:51 +00:00
|
|
|
};
|
|
|
|
}
|