nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchFromGitHub, ogre, cegui, boost, sfml, openal, cmake, ois, pkg-config }:
2
3stdenv.mkDerivation rec {
4 pname = "opendungeons";
5 version = "unstable-2021-11-06";
6
7 src = fetchFromGitHub {
8 owner = "OpenDungeons";
9 repo = "OpenDungeons";
10 rev = "c180ed1864eab5fbe847d1dd5c5c936c4e45444e";
11 sha256 = "0xf7gkpy8ll1h59wyaljf0hr8prg7p4ixz80mxqwcnm9cglpgn63";
12 };
13
14 patches = [
15 ./cmakepaths.patch
16 ./fix_link_date_time.patch
17 ];
18
19 # source/utils/StackTraceUnix.cpp:122:2: error: #error Unsupported architecture.
20 postPatch = lib.optionalString (!stdenv.isx86_64) ''
21 cp source/utils/StackTrace{Stub,Unix}.cpp
22 '';
23
24 nativeBuildInputs = [ cmake pkg-config ];
25 buildInputs = [ ogre cegui boost sfml openal ois ];
26
27 meta = with lib; {
28 description = "An open source, real time strategy game sharing game elements with the Dungeon Keeper series and Evil Genius";
29 homepage = "https://opendungeons.github.io";
30 license = with licenses; [ gpl3Plus zlib mit cc-by-sa-30 cc0 ofl cc-by-30 ];
31 platforms = platforms.linux;
32 };
33}