Files
nixpkgs/pkgs/by-name/op/opendungeons/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

93 lines
1.6 KiB
Nix

{
lib,
stdenv,
ogre_13,
cegui,
fetchFromGitHub,
# nativeBuildInputs
cmake,
pkg-config,
# buildInputs
boost183,
ois,
openal,
sfml_2,
# passthru
unstableGitUpdater,
}:
let
ogre' = ogre_13.overrideAttrs (old: {
cmakeFlags = old.cmakeFlags ++ [
"-DOGRE_RESOURCEMANAGER_STRICT=0"
];
});
cegui' = cegui.override {
ogre = ogre';
};
in
stdenv.mkDerivation {
pname = "opendungeons";
version = "0-unstable-2024-07-27";
src = fetchFromGitHub {
owner = "paroj";
repo = "OpenDungeons";
rev = "2574db9fbe99aeb6a058b7a27bc191da37978c95";
hash = "sha256-EeyLwZmaVzzbxPA4PIooVbw12wYb131x+rnIB8n4fgg=";
};
patches = [
./cmakepaths.patch
./fix_link_date_time.patch
];
# source/utils/StackTraceUnix.cpp:122:2: error: #error Unsupported architecture.
postPatch = lib.optionalString (!stdenv.hostPlatform.isx86_64) ''
cp source/utils/StackTrace{Stub,Unix}.cpp
'';
strictDeps = true;
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
boost183
cegui'
ogre'
ois
openal
sfml_2
];
cmakeFlags = [
(lib.cmakeBool "OD_TREAT_WARNINGS_AS_ERRORS" false)
];
passthru = {
updateScript = unstableGitUpdater { };
};
meta = {
description = "Open source, real time strategy game sharing game elements with the Dungeon Keeper series and Evil Genius";
mainProgram = "opendungeons";
homepage = "https://opendungeons.github.io";
license = with lib.licenses; [
gpl3Plus
zlib
mit
cc-by-sa-30
cc0
ofl
cc-by-30
];
platforms = lib.platforms.linux;
};
}