2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, SDL2, libogg, libvorbis, zlib, unzip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
# Digital recordings of the music on an original Roland MT-32. So
|
|
|
|
# we don't need actual MIDI playback capability.
|
|
|
|
audio = fetchurl {
|
|
|
|
url = "mirror://sourceforge/exult/exult_audio.zip";
|
|
|
|
sha256 = "0s5wvgy9qja06v38g0qwzpaw76ff96vzd6gb1i3lb9k4hvx0xqbj";
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-09-25 04:45:31 +00:00
|
|
|
name = "exult-1.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/exult/${name}.tar.gz";
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "1dm27qkxj30567zb70q4acddsizn0xyi3z87hg7lysxdkyv49s3s";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [ "--disable-tools" ];
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
nativeBuildInputs = [ pkg-config unzip ];
|
|
|
|
buildInputs = [ SDL2 libogg libvorbis zlib ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
NIX_LDFLAGS = "-lX11";
|
|
|
|
|
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
mkdir -p $out/share/exult/music
|
|
|
|
unzip -o -d $out/share/exult ${audio}
|
|
|
|
chmod 644 $out/share/exult/*.flx
|
|
|
|
''; # */
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://exult.sourceforge.net/";
|
|
|
|
description = "A reimplementation of the Ultima VII game engine";
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = [ lib.maintainers.eelco ];
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
hydraPlatforms = lib.platforms.linux; # darwin times out
|
|
|
|
license = lib.licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|