25 stdenv.mkDerivation rec {
29 src = fetchFromGitHub {
33 sha256 = "sha256-uJRDU0Xd+sHL2IDvMiElUSOhvchVMW9wYMSLSN7pYtQ=";
37 (boost179.override { enablePython = true; python = python3; })
38 (python3.withPackages (p: with p; [ pycodestyle ]))
60 # as of 0.5 FreeOrion doesn't work with "-DOpenGL_GL_PREFERENCE=GLVND"
61 cmakeFlags = [ "-DOpenGL_GL_PREFERENCE=LEGACY" ];
65 # We need final slashes for XSLT replace to work properly
66 substitute ${./fix-paths.xslt} $out/share/freeorion/fix-paths.xslt \
67 --subst-var-by nixStore "$NIX_STORE/" \
68 --subst-var-by out "$out/"
69 substitute ${./fix-paths.sh} $out/libexec/fix-paths \
70 --subst-var-by libxsltBin ${libxslt.bin} \
71 --subst-var-by shell ${stdenv.shell} \
73 chmod +x $out/libexec/fix-paths
75 wrapProgram $out/bin/freeorion \
76 --run $out/libexec/fix-paths \
77 --prefix LD_LIBRARY_PATH : $out/lib/freeorion
81 description = "A free, open source, turn-based space empire and galactic conquest (4X) computer game";
82 homepage = "https://www.freeorion.org/";
83 license = with licenses; [ gpl2 cc-by-sa-30 ];
84 platforms = platforms.linux;
85 maintainers = with maintainers; [ tex ];