1{
2 lib,
3 stdenv,
4 fetchurl,
5 expat,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "bloodspilot-xpilot-fxi-server";
10 version = "1.4.6";
11
12 src = fetchurl {
13 url = "mirror://sourceforge/project/bloodspilot/server/server%20v${version}/xpilot-${version}fxi.tar.gz";
14 sha256 = "0d7hnpshifq6gy9a0g6il6h1hgqqjyys36n8w84hr8d4nhg4d1ji";
15 };
16
17 buildInputs = [
18 expat
19 ];
20
21 patches = [
22 ./server-gcc5.patch
23 ./bloodspilot-server-strcpy-fix.patch
24 ];
25
26 meta = with lib; {
27 description = "Multiplayer X11 space combat game (server part)";
28 mainProgram = "xpilots";
29 homepage = "http://bloodspilot.sf.net/";
30 license = licenses.gpl2Plus;
31 maintainers = [ maintainers.raskin ];
32 platforms = platforms.linux;
33 };
34}