26 stdenv.mkDerivation rec {
30 src = fetchFromGitHub {
34 sha256 = "sha256-k/YwTg0N2b70igfqRuFl/zwxMQhD2QjbapsazYbi0Ik=";
38 (boost16x.override { enablePython = true; python = python3; })
39 (python3.withPackages (p: with p; [ pycodestyle ]))
62 # as of 0.4.10.2 FreeOrion doesn't work with "-DOpenGL_GL_PREFERENCE=GLVND"
63 cmakeFlags = [ "-DOpenGL_GL_PREFERENCE=LEGACY" ];
67 # We need final slashes for XSLT replace to work properly
68 substitute ${./fix-paths.xslt} $out/share/freeorion/fix-paths.xslt \
69 --subst-var-by nixStore "$NIX_STORE/" \
70 --subst-var-by out "$out/"
71 substitute ${./fix-paths.sh} $out/libexec/fix-paths \
72 --subst-var-by libxsltBin ${libxslt.bin} \
73 --subst-var-by shell ${stdenv.shell} \
75 chmod +x $out/libexec/fix-paths
77 wrapProgram $out/bin/freeorion \
78 --run $out/libexec/fix-paths \
79 --prefix LD_LIBRARY_PATH : $out/lib/freeorion
83 description = "A free, open source, turn-based space empire and galactic conquest (4X) computer game";
84 homepage = "http://www.freeorion.org";
85 license = with licenses; [ gpl2 cc-by-sa-30 ];
86 platforms = platforms.linux;
87 maintainers = with maintainers; [ tex ];