2022-11-09 02:58:23 +03:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, cmake
|
2022-12-01 14:44:34 +03:00
|
|
|
, wxGTK32
|
2022-11-09 02:58:23 +03:00
|
|
|
, openal
|
|
|
|
, pkg-config
|
|
|
|
, curl
|
|
|
|
, libtorrent-rasterbar
|
|
|
|
, libpng
|
|
|
|
, libX11
|
|
|
|
, gettext
|
|
|
|
, boost
|
|
|
|
, libnotify
|
2022-12-01 14:44:34 +03:00
|
|
|
, gtk3
|
2022-11-09 02:58:23 +03:00
|
|
|
, doxygen
|
|
|
|
, spring
|
|
|
|
, 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 {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "springlobby";
|
2022-12-01 14:44:34 +03:00
|
|
|
version = "0.273";
|
2010-11-13 10:47:04 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-03-21 01:37:21 +03:00
|
|
|
url = "https://springlobby.springrts.com/dl/stable/springlobby-${version}.tar.bz2";
|
2022-12-01 14:44:34 +03:00
|
|
|
sha256 = "sha256-XkU6i6ABCgw3H9vJu0xjHRO1BglueYM1LyJxcZdOrDk=";
|
2010-11-13 10:47:04 +03:00
|
|
|
};
|
|
|
|
|
2021-01-17 08:49:22 +03:00
|
|
|
nativeBuildInputs = [ cmake pkg-config gettext doxygen makeWrapper ];
|
2013-12-04 06:25:05 +04:00
|
|
|
buildInputs = [
|
2022-12-01 14:44:34 +03:00
|
|
|
wxGTK32
|
2022-11-09 02:58:23 +03:00
|
|
|
openal
|
|
|
|
curl
|
|
|
|
libtorrent-rasterbar
|
|
|
|
pcre
|
|
|
|
jsoncpp
|
|
|
|
boost
|
|
|
|
libpng
|
|
|
|
libX11
|
|
|
|
libnotify
|
2022-12-01 14:44:34 +03:00
|
|
|
gtk3
|
2022-11-09 02:58:23 +03:00
|
|
|
glib
|
|
|
|
minizip
|
|
|
|
alure
|
2013-12-04 06:25:05 +04:00
|
|
|
];
|
2010-11-13 10:47:04 +03:00
|
|
|
|
2020-10-27 00:33:13 +03:00
|
|
|
patches = [
|
|
|
|
./revert_58b423e.patch # Allows springLobby to continue using system installed spring until #707 is fixed
|
|
|
|
./fix-certs.patch
|
|
|
|
];
|
2016-08-25 04:20:32 +03:00
|
|
|
|
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
|
|
|
|
2021-01-11 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2022-11-09 02:58:23 +03:00
|
|
|
homepage = "https://springlobby.springrts.com";
|
2013-10-06 13:49:53 +04:00
|
|
|
description = "Cross-platform lobby client for the Spring RTS project";
|
2022-11-09 02:58:23 +03:00
|
|
|
license = licenses.gpl2Plus;
|
2021-12-18 12:25:46 +03:00
|
|
|
maintainers = with maintainers; [ qknight domenkozar ];
|
2022-11-09 02:58:23 +03:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
2010-11-13 10:47:04 +03:00
|
|
|
};
|
2012-03-08 19:32:20 +04:00
|
|
|
}
|