2022-11-27 09:42:12 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, cmake
|
2022-12-17 10:02:37 +00:00
|
|
|
, wxGTK32
|
2022-11-27 09:42:12 +00:00
|
|
|
, openal
|
|
|
|
, pkg-config
|
|
|
|
, curl
|
|
|
|
, libtorrent-rasterbar
|
|
|
|
, libpng
|
|
|
|
, libX11
|
|
|
|
, gettext
|
|
|
|
, boost
|
|
|
|
, libnotify
|
2022-12-17 10:02:37 +00:00
|
|
|
, gtk3
|
2022-11-27 09:42:12 +00:00
|
|
|
, doxygen
|
|
|
|
, spring
|
|
|
|
, makeWrapper
|
|
|
|
, glib
|
|
|
|
, minizip
|
|
|
|
, alure
|
|
|
|
, pcre
|
|
|
|
, jsoncpp
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "springlobby";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "0.273";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://springlobby.springrts.com/dl/stable/springlobby-${version}.tar.bz2";
|
2022-12-17 10:02:37 +00:00
|
|
|
sha256 = "sha256-XkU6i6ABCgw3H9vJu0xjHRO1BglueYM1LyJxcZdOrDk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config gettext doxygen makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2022-12-17 10:02:37 +00:00
|
|
|
wxGTK32
|
2022-11-27 09:42:12 +00:00
|
|
|
openal
|
|
|
|
curl
|
|
|
|
libtorrent-rasterbar
|
|
|
|
pcre
|
|
|
|
jsoncpp
|
|
|
|
boost
|
|
|
|
libpng
|
|
|
|
libX11
|
|
|
|
libnotify
|
2022-12-17 10:02:37 +00:00
|
|
|
gtk3
|
2022-11-27 09:42:12 +00:00
|
|
|
glib
|
|
|
|
minizip
|
|
|
|
alure
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
patches = [
|
|
|
|
./revert_58b423e.patch # Allows springLobby to continue using system installed spring until #707 is fixed
|
|
|
|
./fix-certs.patch
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/springlobby \
|
|
|
|
--prefix PATH : "${spring}/bin" \
|
|
|
|
--set SPRING_BUNDLE_DIR "${spring}/lib"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-11-27 09:42:12 +00:00
|
|
|
homepage = "https://springlobby.springrts.com";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Cross-platform lobby client for the Spring RTS project";
|
2022-11-27 09:42:12 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2021-12-21 02:18:32 +00:00
|
|
|
maintainers = with maintainers; [ qknight domenkozar ];
|
2022-11-27 09:42:12 +00:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|