lol
1{ lib
2, stdenv
3, fetchurl
4, cmake
5, wxGTK32
6, openal
7, pkg-config
8, curl
9, libtorrent-rasterbar
10, libpng
11, libX11
12, gettext
13, boost
14, libnotify
15, gtk3
16, doxygen
17, spring
18, makeWrapper
19, glib
20, minizip
21, alure
22, pcre
23, jsoncpp
24}:
25
26stdenv.mkDerivation rec {
27 pname = "springlobby";
28 version = "0.273";
29
30 src = fetchurl {
31 url = "https://springlobby.springrts.com/dl/stable/springlobby-${version}.tar.bz2";
32 sha256 = "sha256-XkU6i6ABCgw3H9vJu0xjHRO1BglueYM1LyJxcZdOrDk=";
33 };
34
35 nativeBuildInputs = [ cmake pkg-config gettext doxygen makeWrapper ];
36 buildInputs = [
37 wxGTK32
38 openal
39 curl
40 libtorrent-rasterbar
41 pcre
42 jsoncpp
43 boost
44 libpng
45 libX11
46 libnotify
47 gtk3
48 glib
49 minizip
50 alure
51 ];
52
53 patches = [
54 ./revert_58b423e.patch # Allows springLobby to continue using system installed spring until #707 is fixed
55 ./fix-certs.patch
56 ];
57
58 postInstall = ''
59 wrapProgram $out/bin/springlobby \
60 --prefix PATH : "${spring}/bin" \
61 --set SPRING_BUNDLE_DIR "${spring}/lib"
62 '';
63
64 meta = with lib; {
65 homepage = "https://springlobby.springrts.com";
66 description = "Cross-platform lobby client for the Spring RTS project";
67 license = licenses.gpl2Plus;
68 maintainers = with maintainers; [ qknight domenkozar ];
69 platforms = [ "i686-linux" "x86_64-linux" ];
70 };
71}