Skip to content

Commit

Permalink
colobot: Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
SFrijters committed May 7, 2021
1 parent 1b1d7e9 commit eb78357
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pkgs/games/colobot/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake, boost, SDL2, SDL2_image, SDL2_ttf, libpng
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, boost, SDL2, SDL2_image, SDL2_ttf, libpng
, glew, gettext, libsndfile, libvorbis, libogg, physfs, openal
, xmlstarlet, doxygen, python3, callPackage }:

Expand All @@ -18,6 +18,15 @@ stdenv.mkDerivation rec {
sha256 = "0viq5s4zqs33an7rdmc3anf74ml7mwwcwf60alhvp9hj5jr547s2";
};

patches = [
# Fix issue with newer compilers, like used in nixpkgs
# https://github.com/colobot/colobot/pull/1291
(fetchpatch {
url = "https://github.com/colobot/colobot/commit/fc2bd68876ac6302dbc8e91e8ffa33592db14b21.patch";
sha256 = "sha256-PKe8jeyHpTT86tprSafQhNqTYBrSonz+r2fL1lVJdfo=";
})
];

nativeBuildInputs = [ cmake xmlstarlet doxygen python3 ];
buildInputs = [ boost SDL2 SDL2_image SDL2_ttf libpng glew gettext libsndfile libvorbis libogg physfs openal ];

Expand Down

0 comments on commit eb78357

Please sign in to comment.