@@ -1,44 +0,0 @@
1−{ lib, stdenv, fetchsvn, boost, cmake, ffmpeg_3, freeglut, glib,
2− gtk2, libjpeg, libpng, libpthreadstubs, libvorbis, libXau, libXdmcp,
3− libXmu, libGLU, libGL, openal, pixman, pkg-config, python27, SDL }:
4−
5−stdenv.mkDerivation {
6− name = "privateer-1.03";
7−
8− src = fetchsvn {
9− #url = "mirror://sourceforge/project/privateer/Wing%20Commander%20Privateer/Privateer%20Gemini%20Gold%201.03/PrivateerGold1.03.bz2.bin";
10− url = "https://privateer.svn.sourceforge.net/svnroot/privateer/privgold/trunk/engine";
11− rev = "294";
12− sha256 = "e1759087d4565d3fc95e5c87d0f6ddf36b2cd5befec5695ec56ed5f3cd144c63";
13− };
14−
15− nativeBuildInputs = [ cmake pkg-config ];
16− buildInputs =
17− [ boost ffmpeg_3 freeglut glib gtk2 libjpeg libpng
18− libpthreadstubs libvorbis libXau libXdmcp libXmu libGLU libGL openal
19− pixman python27 SDL ];
20−
21− patches = [ ./0001-fix-VSFile-constructor.patch ];
22−
23− preConfigure = ''
24− NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags gtk+-2.0)"
25− '';
26−
27− installPhase = ''
28− mkdir -p $out/bin
29− cp vegastrike $out/bin
30− cp vegaserver $out/bin
31− '';
32−
33− meta = with lib; {
34− homepage = "http://privateer.sourceforge.net/";
35− description = "Adventure space flight simulation computer game";
36− license = licenses.gpl2Plus; # and a special license for art data
37− # https://sourceforge.net/p/privateer/code/HEAD/tree/privgold/trunk/data/art-license.txt
38−
39− maintainers = with maintainers; [ ];
40− platforms = with platforms; linux ++ darwin;
41− hydraPlatforms = [];
42− broken = true; # it won't build
43− };
44−}