summary refs log tree commit diff
path: root/pkgs/games/xpilot/bloodspilot-server.nix
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2016-02-09 00:45:13 +0000
committerRobin Gloster <mail@glob.in>2016-02-09 00:45:13 +0000
commit2ff12752921b558d0e7f8953f02c2db813eccc61 (patch)
tree6351ed2e4e919de5b8365e0c5e4489c900d61a0d /pkgs/games/xpilot/bloodspilot-server.nix
parent09a3349a7916366ab63063625806cff7a86cb25d (diff)
downloadnixpkgs-2ff12752921b558d0e7f8953f02c2db813eccc61.tar
nixpkgs-2ff12752921b558d0e7f8953f02c2db813eccc61.tar.gz
nixpkgs-2ff12752921b558d0e7f8953f02c2db813eccc61.tar.bz2
nixpkgs-2ff12752921b558d0e7f8953f02c2db813eccc61.tar.lz
nixpkgs-2ff12752921b558d0e7f8953f02c2db813eccc61.tar.xz
nixpkgs-2ff12752921b558d0e7f8953f02c2db813eccc61.tar.zst
nixpkgs-2ff12752921b558d0e7f8953f02c2db813eccc61.zip
bloodspilot-server: fix on gcc5
Diffstat (limited to 'pkgs/games/xpilot/bloodspilot-server.nix')
-rw-r--r--pkgs/games/xpilot/bloodspilot-server.nix34
1 files changed, 19 insertions, 15 deletions
diff --git a/pkgs/games/xpilot/bloodspilot-server.nix b/pkgs/games/xpilot/bloodspilot-server.nix
index 3c811f1ba2e..42bcb326316 100644
--- a/pkgs/games/xpilot/bloodspilot-server.nix
+++ b/pkgs/games/xpilot/bloodspilot-server.nix
@@ -1,23 +1,27 @@
-{stdenv, fetchurl, expat}:
-let
-  buildInputs = [
-    expat
-  ];
-in
+{ stdenv, fetchurl, expat }:
+
 stdenv.mkDerivation rec {
-  version = "1.4.6";
   name = "bloodspilot-xpilot-fxi-server-${version}";
-  inherit buildInputs;
+  version = "1.4.6";
+
   src = fetchurl {
     url = "mirror://sourceforge/project/bloodspilot/server/server%20v${version}/xpilot-${version}fxi.tar.gz";
     sha256 = "0d7hnpshifq6gy9a0g6il6h1hgqqjyys36n8w84hr8d4nhg4d1ji";
   };
-  meta = {
-    inherit version;
-    description = ''A multiplayer X11 space combat game (server part)'';
-    homepage = "http://bloodspilot.sf.net/";
-    license = stdenv.lib.licenses.gpl2Plus ;
-    maintainers = [stdenv.lib.maintainers.raskin];
-    platforms = stdenv.lib.platforms.linux;
+
+  buildInputs = [
+    expat
+  ];
+
+  patches = [
+    ./server-gcc5.patch
+  ];
+
+  meta = with stdenv.lib; {
+    description = "A multiplayer X11 space combat game (server part)";
+    homepage = http://bloodspilot.sf.net/;
+    license = licenses.gpl2Plus ;
+    maintainers = [ maintainers.raskin ];
+    platforms = platforms.linux;
   };
 }