1 { lib, stdenv, fetchFromGitHub, 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.1-alpha";
14 src = fetchFromGitHub {
17 rev = "colobot-gold-${version}";
18 hash = "sha256-3iea2+5xCT0//NAjMHrynZKSoiOSgLTNMUQkRhXuXg8=";
21 nativeBuildInputs = [ cmake xmlstarlet doxygen python3 ];
22 buildInputs = [ boost SDL2 SDL2_image SDL2_ttf libpng glew gettext libsndfile libvorbis libogg physfs openal ];
24 enableParallelBuilding = false;
26 # The binary ends in games directoy
28 mv $out/games $out/bin
29 for contents in ${colobot-data}/share/games/colobot/*; do
30 ln -s $contents $out/share/games/colobot
35 homepage = "https://colobot.info/";
36 description = "Colobot: Gold Edition is a real-time strategy game, where you can program your bots";
37 license = licenses.gpl3;
38 maintainers = with maintainers; [ freezeboy ];
39 platforms = platforms.linux;