diff options
author | marius david <mariusdavid@laposte.net> | 2022-05-11 12:43:20 +0200 |
---|---|---|
committer | ehmry <ehmry@posteo.net> | 2022-05-12 18:06:24 -0500 |
commit | 3382e4d22224b1236361fca8ab37de5c22b1e6d7 (patch) | |
tree | e87ae9bc8120cdbb6b938f704ff6de15720ffd93 /pkgs/games/opendungeons | |
parent | 184892dce5e68a19eee342f722a432ff42279e6a (diff) | |
download | nixpkgs-3382e4d22224b1236361fca8ab37de5c22b1e6d7.tar nixpkgs-3382e4d22224b1236361fca8ab37de5c22b1e6d7.tar.gz nixpkgs-3382e4d22224b1236361fca8ab37de5c22b1e6d7.tar.bz2 nixpkgs-3382e4d22224b1236361fca8ab37de5c22b1e6d7.tar.lz nixpkgs-3382e4d22224b1236361fca8ab37de5c22b1e6d7.tar.xz nixpkgs-3382e4d22224b1236361fca8ab37de5c22b1e6d7.tar.zst nixpkgs-3382e4d22224b1236361fca8ab37de5c22b1e6d7.zip |
opendungeons: fix compilation
Diffstat (limited to 'pkgs/games/opendungeons')
-rw-r--r-- | pkgs/games/opendungeons/default.nix | 5 | ||||
-rw-r--r-- | pkgs/games/opendungeons/fix_link_date_time.patch | 13 |
2 files changed, 17 insertions, 1 deletions
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) |