springLobby: reformat
This commit is contained in:
parent
dd9aa5d6c9
commit
faa599ced6
@ -1,7 +1,31 @@
|
||||
{ lib, stdenv, fetchFromGitHub, cmake, xz, boost, libdevil, zlib, p7zip
|
||||
, openal, libvorbis, glew, freetype, xorg, SDL2, libGLU, libGL
|
||||
, asciidoc, docbook_xsl, docbook_xsl_ns, curl, makeWrapper
|
||||
, jdk ? null, python ? null, systemd, libunwind, which, minizip
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, xz
|
||||
, boost
|
||||
, libdevil
|
||||
, zlib
|
||||
, p7zip
|
||||
, openal
|
||||
, libvorbis
|
||||
, glew
|
||||
, freetype
|
||||
, xorg
|
||||
, SDL2
|
||||
, libGLU
|
||||
, libGL
|
||||
, asciidoc
|
||||
, docbook_xsl
|
||||
, docbook_xsl_ns
|
||||
, curl
|
||||
, makeWrapper
|
||||
, jdk
|
||||
, python
|
||||
, systemd
|
||||
, libunwind
|
||||
, which
|
||||
, minizip
|
||||
, withAI ? true # support for AI Interfaces and Skirmish AIs
|
||||
}:
|
||||
|
||||
@ -36,16 +60,36 @@ stdenv.mkDerivation rec {
|
||||
echo "${version} maintenance" > VERSION
|
||||
'';
|
||||
|
||||
cmakeFlags = ["-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON"
|
||||
"-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=ON"
|
||||
"-DPREFER_STATIC_LIBS:BOOL=OFF"];
|
||||
cmakeFlags = [
|
||||
"-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON"
|
||||
"-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=ON"
|
||||
"-DPREFER_STATIC_LIBS:BOOL=OFF"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake makeWrapper docbook_xsl docbook_xsl_ns asciidoc ];
|
||||
buildInputs = [ xz boost libdevil zlib p7zip openal libvorbis freetype SDL2
|
||||
xorg.libX11 xorg.libXcursor libGLU libGL glew curl
|
||||
systemd libunwind which minizip ]
|
||||
++ lib.optional withAI jdk
|
||||
++ lib.optional withAI python;
|
||||
buildInputs = [
|
||||
xz
|
||||
boost
|
||||
libdevil
|
||||
zlib
|
||||
p7zip
|
||||
openal
|
||||
libvorbis
|
||||
freetype
|
||||
SDL2
|
||||
xorg.libX11
|
||||
xorg.libXcursor
|
||||
libGLU
|
||||
libGL
|
||||
glew
|
||||
curl
|
||||
systemd
|
||||
libunwind
|
||||
which
|
||||
minizip
|
||||
]
|
||||
++ lib.optional withAI jdk
|
||||
++ lib.optional withAI python;
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-fpermissive"; # GL header minor incompatibility
|
||||
|
||||
@ -57,8 +101,8 @@ stdenv.mkDerivation rec {
|
||||
meta = with lib; {
|
||||
homepage = "https://springrts.com/";
|
||||
description = "A powerful real-time strategy (RTS) game engine";
|
||||
license = licenses.gpl2;
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ qknight domenkozar sorki ];
|
||||
platforms = platforms.linux;
|
||||
platforms = [ "i686-linux" "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
|
@ -1,6 +1,28 @@
|
||||
{ lib, stdenv, fetchurl, fetchpatch, cmake, wxGTK30, openal, pkg-config, curl, libtorrent-rasterbar
|
||||
, libpng, libX11, gettext, boost, libnotify, gtk2, doxygen, spring
|
||||
, makeWrapper, glib, minizip, alure, pcre, jsoncpp }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, fetchpatch
|
||||
, cmake
|
||||
, wxGTK30
|
||||
, openal
|
||||
, pkg-config
|
||||
, curl
|
||||
, libtorrent-rasterbar
|
||||
, libpng
|
||||
, libX11
|
||||
, gettext
|
||||
, boost
|
||||
, libnotify
|
||||
, gtk2
|
||||
, doxygen
|
||||
, spring
|
||||
, makeWrapper
|
||||
, glib
|
||||
, minizip
|
||||
, alure
|
||||
, pcre
|
||||
, jsoncpp
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "springlobby";
|
||||
@ -13,8 +35,20 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config gettext doxygen makeWrapper ];
|
||||
buildInputs = [
|
||||
wxGTK30 openal curl libtorrent-rasterbar pcre jsoncpp
|
||||
boost libpng libX11 libnotify gtk2 glib minizip alure
|
||||
wxGTK30
|
||||
openal
|
||||
curl
|
||||
libtorrent-rasterbar
|
||||
pcre
|
||||
jsoncpp
|
||||
boost
|
||||
libpng
|
||||
libX11
|
||||
libnotify
|
||||
gtk2
|
||||
glib
|
||||
minizip
|
||||
alure
|
||||
];
|
||||
|
||||
patches = [
|
||||
@ -33,10 +67,10 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://springlobby.info/";
|
||||
homepage = "https://springlobby.springrts.com";
|
||||
description = "Cross-platform lobby client for the Spring RTS project";
|
||||
license = licenses.gpl2;
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ qknight domenkozar ];
|
||||
platforms = platforms.linux;
|
||||
platforms = [ "i686-linux" "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user