diff --git a/pkgs/games/opendungeons/default.nix b/pkgs/games/opendungeons/default.nix index 734be8e999a..9afcbd89878 100644 --- a/pkgs/games/opendungeons/default.nix +++ b/pkgs/games/opendungeons/default.nix @@ -11,7 +11,10 @@ stdenv.mkDerivation rec { sha256 = "0xf7gkpy8ll1h59wyaljf0hr8prg7p4ixz80mxqwcnm9cglpgn63"; }; - patches = [ ./cmakepaths.patch ]; + patches = [ + ./cmakepaths.patch + ./fix_link_date_time.patch + ]; nativeBuildInputs = [ cmake pkg-config ]; buildInputs = [ ogre cegui boost sfml openal ois ]; diff --git a/pkgs/games/opendungeons/fix_link_date_time.patch b/pkgs/games/opendungeons/fix_link_date_time.patch new file mode 100644 index 00000000000..884aa9901ba --- /dev/null +++ b/pkgs/games/opendungeons/fix_link_date_time.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index f8ff3c2..689c463 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -538,7 +538,7 @@ endif() + #This has to cover the versions not already known by CMake + set(Boost_ADDITIONAL_VERSIONS 1.47 1.47.0 1.47.1 1.55.0) + +-set(OD_BOOST_COMPONENTS system filesystem locale program_options thread) ++set(OD_BOOST_COMPONENTS system date_time filesystem locale program_options thread) + + if(BUILD_TESTING AND OD_BUILD_TESTING) + set(OD_BOOST_COMPONENTS ${OD_BOOST_COMPONENTS} unit_test_framework)