diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-07-20 11:07:17 +0300 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-07-20 11:07:17 +0300 |
commit | 73c36c646a5579b2abdb86ba5f943233df07ed14 (patch) | |
tree | cb01e27cb58281f91d86101050b81539b527d987 /pkgs/games | |
parent | 34f9116c5868f81ac83daae291c67a16a002605c (diff) |
opendungeons: unstable-2021-11-06 -> unstable-2023-03-18
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/opendungeons/default.nix | 54 |
1 files changed, 46 insertions, 8 deletions
diff --git a/pkgs/games/opendungeons/default.nix b/pkgs/games/opendungeons/default.nix index 61f8aad304c8b..a5fdb5cd9a8e9 100644 --- a/pkgs/games/opendungeons/default.nix +++ b/pkgs/games/opendungeons/default.nix @@ -1,14 +1,35 @@ -{ lib, stdenv, fetchFromGitHub, ogre, cegui, boost, sfml, openal, cmake, ois, pkg-config }: +{ lib +, stdenv +, fetchFromGitHub +, cmake +, pkg-config +, ogre +, cegui +, boost +, sfml +, openal +, ois +}: -stdenv.mkDerivation rec { +let + ogre' = ogre.overrideAttrs (old: { + cmakeFlags = old.cmakeFlags ++ [ + "-DOGRE_RESOURCEMANAGER_STRICT=0" + ]; + }); + cegui' = cegui.override { + ogre = ogre'; + }; +in +stdenv.mkDerivation { pname = "opendungeons"; - version = "unstable-2021-11-06"; + version = "unstable-2023-03-18"; src = fetchFromGitHub { - owner = "OpenDungeons"; + owner = "paroj"; repo = "OpenDungeons"; - rev = "c180ed1864eab5fbe847d1dd5c5c936c4e45444e"; - sha256 = "0xf7gkpy8ll1h59wyaljf0hr8prg7p4ixz80mxqwcnm9cglpgn63"; + rev = "974378d75591214dccbe0fb26e6ec8a40c2156e0"; + hash = "sha256-vz9cT+rNcyKT3W9I9VRKcFol2SH1FhOhOALALjgKfIE="; }; patches = [ @@ -21,8 +42,25 @@ stdenv.mkDerivation rec { cp source/utils/StackTrace{Stub,Unix}.cpp ''; - nativeBuildInputs = [ cmake pkg-config ]; - buildInputs = [ ogre cegui boost sfml openal ois ]; + strictDeps = true; + + nativeBuildInputs = [ + cmake + pkg-config + ]; + + buildInputs = [ + ogre' + cegui' + boost + sfml + openal + ois + ]; + + cmakeFlags = [ + "-DOD_TREAT_WARNINGS_AS_ERRORS=FALSE" + ]; meta = with lib; { description = "An open source, real time strategy game sharing game elements with the Dungeon Keeper series and Evil Genius"; |