1 { lib, stdenv, fetchFromGitHub, fetchpatch, cmake, boost, SDL2, SDL2_image, SDL2_ttf, libpng
2 , glew, gettext, libsndfile, libvorbis, libogg, physfs, openal
3 , xmlstarlet, doxygen, python3, callPackage }:
6 colobot-data = callPackage ./data.nix {};
8 stdenv.mkDerivation rec {
10 # Maybe require an update to package colobot-data as well
11 # in file data.nix next to this one
12 version = "0.2.0-alpha";
14 src = fetchFromGitHub {
17 rev = "colobot-gold-${version}";
18 sha256 = "sha256-Nu7NyicNIk5yza9sXfd4KbGdB65guVuGREd6rwRU3lU=";
22 # https://github.com/colobot/colobot/pull/1559
23 # gcc13 fixes. remove on next update
25 name = "gcc13-fixes.patch";
26 url = "https://github.com/colobot/colobot/commit/d47e26586325ec11425cef5c95fc206dc103dbe2.patch";
27 hash = "sha256-2DmLkyoyiZSW0yeZDSSWFjCEJos25jPHZQi1yuJGFko=";
29 "src/object/task/taskgoto.h"
34 nativeBuildInputs = [ cmake xmlstarlet doxygen python3 ];
35 buildInputs = [ boost SDL2 SDL2_image SDL2_ttf libpng glew gettext libsndfile libvorbis libogg physfs openal ];
37 enableParallelBuilding = false;
39 # The binary ends in games directoy
41 mv $out/games $out/bin
42 for contents in ${colobot-data}/share/games/colobot/*; do
43 ln -s $contents $out/share/games/colobot
48 homepage = "https://colobot.info/";
49 description = "Colobot: Gold Edition is a real-time strategy game, where you can program your bots";
50 license = licenses.gpl3;
51 maintainers = with maintainers; [ freezeboy ];
52 platforms = platforms.linux;