summary refs log tree commit diff
path: root/pkgs/games/spring/spring-lobby.nix
diff options
context:
space:
mode:
authorEvgeny Egorochkin <phreedom.stdin@gmail.com>2010-11-13 07:47:04 +0000
committerEvgeny Egorochkin <phreedom.stdin@gmail.com>2010-11-13 07:47:04 +0000
commit5029db216055b351dc8107eaf0178bb540b22549 (patch)
tree77cbeafbafed4debc747d27dc53b213b397f1f32 /pkgs/games/spring/spring-lobby.nix
parent4018b1dd39f66b36d14cd3644c95bd90899e5454 (diff)
downloadnixpkgs-5029db216055b351dc8107eaf0178bb540b22549.tar
nixpkgs-5029db216055b351dc8107eaf0178bb540b22549.tar.gz
nixpkgs-5029db216055b351dc8107eaf0178bb540b22549.tar.bz2
nixpkgs-5029db216055b351dc8107eaf0178bb540b22549.tar.lz
nixpkgs-5029db216055b351dc8107eaf0178bb540b22549.tar.xz
nixpkgs-5029db216055b351dc8107eaf0178bb540b22549.tar.zst
nixpkgs-5029db216055b351dc8107eaf0178bb540b22549.zip
Spring RTS: packaged along with its deps and utils: libDevIL, libtorrent-rasterbar, spring-lobby.
svn path=/nixpkgs/trunk/; revision=24681
Diffstat (limited to 'pkgs/games/spring/spring-lobby.nix')
-rw-r--r--pkgs/games/spring/spring-lobby.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/games/spring/spring-lobby.nix b/pkgs/games/spring/spring-lobby.nix
new file mode 100644
index 00000000000..9365f2e6585
--- /dev/null
+++ b/pkgs/games/spring/spring-lobby.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchurl, cmake, wxGTK, openal, pkgconfig, curl, libtorrentRasterbar
+, gettext, bash, gawk, boost }:
+stdenv.mkDerivation rec {
+
+  name = "spring-lobby-${version}";
+  version = "0.116";
+
+  src = fetchurl {
+    url = "http://www.springlobby.info/tarballs/springlobby-${version}.tar.bz2";
+    sha256 = "04gb2dc2xc0lj2d14jzz330kn5faffdz3xph9bg2m68b28fv0xsk";
+  };
+
+  buildInputs = [ cmake wxGTK openal pkgconfig curl gettext libtorrentRasterbar boost ];
+
+  prePatch = ''
+    substituteInPlace tools/regen_config_header.sh --replace "#!/bin/bash" "#!${bash}/bin/bash"
+    substituteInPlace tools/test-susynclib.awk --replace "#!/usr/bin/awk" "#!${gawk}/bin/awk"
+    substituteInPlace CMakeLists.txt --replace "boost_system-mt" "boost_system"
+  '';
+
+  enableParallelBuilding = true;
+
+  meta = with stdenv.lib; {
+    homepage = http://springlobby.info/;
+    description = "A free cross-platform lobby client for the Spring RTS project.";
+    license = licenses.gpl2;
+    maintainers = [ maintainers.phreedom ];
+    platforms = platforms.linux;
+  };
+}
\ No newline at end of file