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