2016-05-03 12:19:19 +03:00
|
|
|
{ stdenv, fetchurl, cmake, wxGTK30, openal, pkgconfig, curl, libtorrentRasterbar
|
2016-09-12 00:24:51 +03:00
|
|
|
, libpng, libX11, gettext, bash, gawk, boost, libnotify, gtk2, doxygen, spring
|
2016-05-03 12:19:19 +03:00
|
|
|
, makeWrapper, glib, minizip, alure, pcre, jsoncpp }:
|
2010-11-13 10:47:04 +03:00
|
|
|
|
2016-08-28 01:08:20 +03:00
|
|
|
stdenv.mkDerivation rec {
|
2012-03-08 19:32:20 +04:00
|
|
|
name = "springlobby-${version}";
|
2016-08-25 04:20:32 +03:00
|
|
|
version = "0.255";
|
2010-11-13 10:47:04 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.springlobby.info/tarballs/springlobby-${version}.tar.bz2";
|
2016-08-25 04:20:32 +03:00
|
|
|
sha256 = "12iv6h1mz998lzxc2jwkza0m1yvaaq8h05k36i85xyp7g90197jw";
|
2010-11-13 10:47:04 +03:00
|
|
|
};
|
|
|
|
|
2013-12-04 06:25:05 +04:00
|
|
|
buildInputs = [
|
2016-05-03 12:19:19 +03:00
|
|
|
cmake wxGTK30 openal pkgconfig curl gettext libtorrentRasterbar pcre jsoncpp
|
2016-09-12 00:24:51 +03:00
|
|
|
boost libpng libX11 libnotify gtk2 doxygen makeWrapper glib minizip alure
|
2013-12-04 06:25:05 +04:00
|
|
|
];
|
2010-11-13 10:47:04 +03:00
|
|
|
|
2016-08-25 04:20:32 +03:00
|
|
|
patches = [ ./revert_58b423e.patch ]; # Allows springLobby to continue using system installed spring until #707 is fixed
|
|
|
|
|
2010-11-13 10:47:04 +03:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-02-10 17:18:58 +04:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/springlobby \
|
|
|
|
--prefix PATH : "${spring}/bin" \
|
2014-03-22 14:49:20 +04:00
|
|
|
--set SPRING_BUNDLE_DIR "${spring}/lib"
|
2014-02-10 17:18:58 +04:00
|
|
|
'';
|
2012-03-09 04:59:13 +04:00
|
|
|
|
2010-11-13 10:47:04 +03:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://springlobby.info/;
|
2014-03-22 14:49:20 +04:00
|
|
|
repositories.git = git://github.com/springlobby/springlobby.git;
|
2013-10-06 13:49:53 +04:00
|
|
|
description = "Cross-platform lobby client for the Spring RTS project";
|
2010-11-13 10:47:04 +03:00
|
|
|
license = licenses.gpl2;
|
2016-05-17 14:57:28 +03:00
|
|
|
maintainers = with maintainers; [ phreedom qknight domenkozar ];
|
2012-03-08 19:32:20 +04:00
|
|
|
platforms = platforms.linux;
|
2010-11-13 10:47:04 +03:00
|
|
|
};
|
2012-03-08 19:32:20 +04:00
|
|
|
}
|