2023-07-20 08:07:17 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
2023-07-31 08:08:12 +00:00
|
|
|
, ogre_13
|
2023-07-20 08:07:17 +00:00
|
|
|
, cegui
|
|
|
|
, boost
|
|
|
|
, sfml
|
|
|
|
, openal
|
|
|
|
, ois
|
|
|
|
}:
|
2016-04-23 01:58:51 +00:00
|
|
|
|
2023-07-20 08:07:17 +00:00
|
|
|
let
|
2023-07-31 08:08:12 +00:00
|
|
|
ogre' = ogre_13.overrideAttrs (old: {
|
2023-07-20 08:07:17 +00:00
|
|
|
cmakeFlags = old.cmakeFlags ++ [
|
|
|
|
"-DOGRE_RESOURCEMANAGER_STRICT=0"
|
|
|
|
];
|
|
|
|
});
|
|
|
|
cegui' = cegui.override {
|
|
|
|
ogre = ogre';
|
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "opendungeons";
|
2023-07-20 08:07:17 +00:00
|
|
|
version = "unstable-2023-03-18";
|
2016-04-23 01:58:51 +00:00
|
|
|
|
2016-12-28 22:09:14 +00:00
|
|
|
src = fetchFromGitHub {
|
2023-07-20 08:07:17 +00:00
|
|
|
owner = "paroj";
|
2016-12-28 22:09:14 +00:00
|
|
|
repo = "OpenDungeons";
|
2023-07-20 08:07:17 +00:00
|
|
|
rev = "974378d75591214dccbe0fb26e6ec8a40c2156e0";
|
|
|
|
hash = "sha256-vz9cT+rNcyKT3W9I9VRKcFol2SH1FhOhOALALjgKfIE=";
|
2016-04-23 01:58:51 +00:00
|
|
|
};
|
|
|
|
|
2022-05-11 10:43:20 +00:00
|
|
|
patches = [
|
|
|
|
./cmakepaths.patch
|
|
|
|
./fix_link_date_time.patch
|
|
|
|
];
|
2016-04-23 01:58:51 +00:00
|
|
|
|
2022-12-05 13:36:17 +00:00
|
|
|
# source/utils/StackTraceUnix.cpp:122:2: error: #error Unsupported architecture.
|
|
|
|
postPatch = lib.optionalString (!stdenv.isx86_64) ''
|
|
|
|
cp source/utils/StackTrace{Stub,Unix}.cpp
|
|
|
|
'';
|
|
|
|
|
2023-07-20 08:07:17 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
ogre'
|
|
|
|
cegui'
|
|
|
|
boost
|
|
|
|
sfml
|
|
|
|
openal
|
|
|
|
ois
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DOD_TREAT_WARNINGS_AS_ERRORS=FALSE"
|
|
|
|
];
|
2016-04-23 01:58:51 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "An open source, real time strategy game sharing game elements with the Dungeon Keeper series and Evil Genius";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://opendungeons.github.io";
|
2020-12-31 07:48:55 +00:00
|
|
|
license = with licenses; [ gpl3Plus zlib mit cc-by-sa-30 cc0 ofl cc-by-30 ];
|
2016-04-23 01:58:51 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|