2021-01-17 05:49:22 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, cmake, wxGTK30, openal, pkg-config, curl, libtorrent-rasterbar
|
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 {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "springlobby";
|
2020-07-07 15:18:31 +01:00
|
|
|
version = "0.270";
|
2010-11-13 07:47:04 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-03-20 22:37:21 +00:00
|
|
|
url = "https://springlobby.springrts.com/dl/stable/springlobby-${version}.tar.bz2";
|
2020-07-07 15:18:31 +01:00
|
|
|
sha256 = "1r1g2hw9ipsmsmzbhsi7bxqra1za6x7j1kw12qzl5psqyq8rqbgs";
|
2010-11-13 07:47:04 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 05:49:22 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config gettext doxygen makeWrapper ];
|
2013-12-04 02:25:05 +00:00
|
|
|
buildInputs = [
|
2020-12-20 13:35:14 +00:00
|
|
|
wxGTK30 openal curl libtorrent-rasterbar pcre jsoncpp
|
2020-10-26 21:33:58 +00:00
|
|
|
boost libpng libX11 libnotify gtk2 glib minizip alure
|
2013-12-04 02:25:05 +00:00
|
|
|
];
|
2010-11-13 07:47:04 +00:00
|
|
|
|
2020-10-26 21:33:13 +00:00
|
|
|
patches = [
|
|
|
|
./revert_58b423e.patch # Allows springLobby to continue using system installed spring until #707 is fixed
|
|
|
|
./fix-certs.patch
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/springlobby/springlobby/commit/252c4cb156c1442ed9b4faec3f26265bc7c295ff.patch";
|
|
|
|
sha256 = "sha256-Nq1F5fRPnCkZwl9KgrfuUmpIMK3hUOyZQYIKElWpmzU=";
|
|
|
|
})
|
|
|
|
];
|
2016-08-25 02:20:32 +01:00
|
|
|
|
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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://springlobby.info/";
|
|
|
|
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
|
|
|
}
|