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