about summary refs log tree commit diff
path: root/pkgs/games/opendungeons/default.nix
blob: f6841abb1d07a53ee96f4f2b315b6aa396e2fa2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchFromGitHub, ogre, cegui, boost, sfml, openal, cmake, ois, pkgconfig }:

stdenv.mkDerivation rec {
  pname = "opendungeons";
  version = "0.7.1";

  src = fetchFromGitHub {
    owner = "OpenDungeons";
    repo = "OpenDungeons";
    rev = version;
    sha256 = "0nipb2h0gn628yxlahjgnfhmpfqa19mjdbj3aqabimdfqds9pryh";
  };

  patches = [ ./cmakepaths.patch ];

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ cmake ogre cegui boost sfml openal ois ];
  NIX_LDFLAGS = "-lpthread";

  meta = with stdenv.lib; {
    description = "An open source, real time strategy game sharing game elements with the Dungeon Keeper series and Evil Genius.";
    homepage = https://opendungeons.github.io;
    license = [ licenses.gpl3Plus licenses.zlib licenses.mit licenses.cc-by-sa-30 licenses.cc0 licenses.ofl licenses.cc-by-30 ];
    platforms = platforms.linux;
  };
}