···1-{ lib, stdenv, fetchurl, pkg-config, SDL2, libogg, libvorbis, zlib, unzip }:
2-3-let
4-5- # Digital recordings of the music on an original Roland MT-32. So
6- # we don't need actual MIDI playback capability.
7- audio = fetchurl {
8- url = "mirror://sourceforge/exult/exult_audio.zip";
9- sha256 = "0s5wvgy9qja06v38g0qwzpaw76ff96vzd6gb1i3lb9k4hvx0xqbj";
10- };
11-12-in
01314stdenv.mkDerivation rec {
15 pname = "exult";
16- version = "1.6";
1718- src = fetchurl {
19- url = "mirror://sourceforge/exult/exult-${version}.tar.gz";
20- sha256 = "1dm27qkxj30567zb70q4acddsizn0xyi3z87hg7lysxdkyv49s3s";
0021 };
2223- configureFlags = [ "--disable-tools" ];
000002425- nativeBuildInputs = [ pkg-config unzip ];
26- buildInputs = [ SDL2 libogg libvorbis zlib ];
00002728- enableParallelBuilding = true;
002930- NIX_LDFLAGS = "-lX11";
31-32- postInstall =
33- ''
34- mkdir -p $out/share/exult/music
35- unzip -o -d $out/share/exult ${audio}
36- chmod 644 $out/share/exult/*.flx
37- ''; # */
3839- meta = {
40- homepage = "http://exult.sourceforge.net/";
41- description = "A reimplementation of the Ultima VII game engine";
42- maintainers = [ lib.maintainers.eelco ];
43- platforms = lib.platforms.unix;
44- hydraPlatforms = lib.platforms.linux; # darwin times out
45- license = lib.licenses.gpl2Plus;
0000000046 };
47}
···1+{ lib
2+, stdenv
3+, fetchFromGitHub
4+, SDL2
5+, autoconf
6+, automake
7+, libogg
8+, libtool
9+, libvorbis
10+, pkg-config
11+, zlib
12+, enableTools ? false
13+}:
1415stdenv.mkDerivation rec {
16 pname = "exult";
17+ version = "1.8";
1819+ src = fetchFromGitHub {
20+ owner = "exult";
21+ repo = "exult";
22+ rev = "v${version}";
23+ hash = "sha256-Y7FpgiGuqR4ZG/PNSfLcNcRWeeC7GebUTighXsCfy+E=";
24 };
2526+ nativeBuildInputs = [
27+ autoconf
28+ automake
29+ libtool
30+ pkg-config
31+ ];
3233+ buildInputs = [
34+ SDL2
35+ libogg
36+ libvorbis
37+ zlib
38+ ];
3940+ preConfigure = ''
41+ ./autogen.sh
42+ '';
4344+ configureFlags = lib.optional (!enableTools) "--disable-tools";
00000004546+ meta = with lib; {
47+ description = "Exult is a project to recreate Ultima VII for modern operating systems";
48+ longDescription = ''
49+ Ultima VII, an RPG from the early 1990's, still has a huge following. But,
50+ being a DOS game with a very nonstandard memory manager, it is difficult
51+ to run it on the latest computers. Exult is a project that created an
52+ Ultima VII game engine that runs on modern operating systems, capable of
53+ using the data and graphics files that come with the game. Exult aims to
54+ let those people who own Ultima VII play the game on modern hardware, in
55+ as close to (or perhaps even surpassing) its original splendor as is
56+ possible.
57+ '';
58+ homepage = "http://exult.info";
59+ license = licenses.gpl2Plus;
60+ maintainers = with maintainers; [ azahi eelco ];
61 };
62}