@@ -1,6 +1,6 @@
11{ stdenv, fetchFromGitHub, cmake, lzma, boost, libdevil, zlib, p7zip
22, openal, libvorbis, glew, freetype, xorg, SDL2, libGLU, libGL
3−, asciidoc, libxslt, docbook_xsl, docbook_xsl_ns, curl, makeWrapper
3+, asciidoc, docbook_xsl, docbook_xsl_ns, curl, makeWrapper
44, jdk ? null, python ? null, systemd, libunwind, which, minizip
55, withAI ? true # support for AI Interfaces and Skirmish AIs
66}:
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
1616 # taken from https://github.com/spring/spring/commits/maintenance
1717 src = fetchFromGitHub {
1818 owner = "spring";
19− repo = "spring";
19+ repo = pname;
2020 inherit rev;
2121 sha256 = "1nx68d894yfmqc6df72hmk75ph26fqdvlmmq58cca0vbwpz9hf5v";
2222 fetchSubmodules = true;
@@ -40,14 +40,13 @@ stdenv.mkDerivation rec {
4040 "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=ON"
4141 "-DPREFER_STATIC_LIBS:BOOL=OFF"];
4242
43− buildInputs = [ cmake lzma boost libdevil zlib p7zip openal libvorbis freetype SDL2
44− xorg.libX11 xorg.libXcursor libGLU libGL glew asciidoc libxslt docbook_xsl curl makeWrapper
45− docbook_xsl_ns systemd libunwind which minizip ]
43+ nativeBuildInputs = [ cmake makeWrapper docbook_xsl docbook_xsl_ns asciidoc ];
44+ buildInputs = [ lzma boost libdevil zlib p7zip openal libvorbis freetype SDL2
45+ xorg.libX11 xorg.libXcursor libGLU libGL glew curl
46+ systemd libunwind which minizip ]
4647 ++ stdenv.lib.optional withAI jdk
4748 ++ stdenv.lib.optional withAI python;
4849
49− enableParallelBuilding = true;
50−
5150 NIX_CFLAGS_COMPILE = "-fpermissive"; # GL header minor incompatibility
5251
5352 postInstall = ''
@@ -59,7 +58,7 @@ stdenv.mkDerivation rec {
5958 homepage = "https://springrts.com/";
6059 description = "A powerful real-time strategy (RTS) game engine";
6160 license = licenses.gpl2;
62− maintainers = [ maintainers.phreedom maintainers.qknight maintainers.domenkozar maintainers.sorki ];
61+ maintainers = with maintainers; [ phreedom qknight domenkozar sorki ];
6362 platforms = platforms.linux;
6463 };
6564}