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