about summary refs log tree commit diff
path: root/pkgs/games/exult/default.nix
blob: eddb96f301dace0455282186c7a63ebd1fc9f0a3 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{ lib
, stdenv
, fetchFromGitHub
, SDL2
, autoconf
, automake
, libogg
, libtool
, libvorbis
, pkg-config
, zlib
, enableTools ? false
}:

stdenv.mkDerivation rec {
  pname = "exult";
  version = "1.8";

  src = fetchFromGitHub {
    owner = "exult";
    repo = "exult";
    rev = "v${version}";
    hash = "sha256-Y7FpgiGuqR4ZG/PNSfLcNcRWeeC7GebUTighXsCfy+E=";
  };

  nativeBuildInputs = [
    autoconf
    automake
    libtool
    pkg-config
  ];

  buildInputs = [
    SDL2
    libogg
    libvorbis
    zlib
  ];

  preConfigure = ''
    ./autogen.sh
  '';

  configureFlags = lib.optional (!enableTools) "--disable-tools";

  meta = with lib; {
    description = "Exult is a project to recreate Ultima VII for modern operating systems";
    longDescription = ''
      Ultima VII, an RPG from the early 1990's, still has a huge following. But,
      being a DOS game with a very nonstandard memory manager, it is difficult
      to run it on the latest computers. Exult is a project that created an
      Ultima VII game engine that runs on modern operating systems, capable of
      using the data and graphics files that come with the game. Exult aims to
      let those people who own Ultima VII play the game on modern hardware, in
      as close to (or perhaps even surpassing) its original splendor as is
      possible.
    '';
    homepage = "http://exult.info";
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ azahi eelco ];
  };
}