2021-01-17 05:49:22 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, SDL2, libogg, libvorbis, zlib, unzip }:
|
2006-09-12 00:15:05 +00:00
|
|
|
|
2009-07-09 10:47:17 +00:00
|
|
|
let
|
|
|
|
|
|
|
|
# Digital recordings of the music on an original Roland MT-32. So
|
|
|
|
# we don't need actual MIDI playback capability.
|
2014-07-22 12:51:05 +00:00
|
|
|
audio = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "mirror://sourceforge/exult/exult_audio.zip";
|
2014-07-22 12:51:05 +00:00
|
|
|
sha256 = "0s5wvgy9qja06v38g0qwzpaw76ff96vzd6gb1i3lb9k4hvx0xqbj";
|
|
|
|
};
|
2009-07-09 10:47:17 +00:00
|
|
|
|
|
|
|
in
|
|
|
|
|
2014-07-22 12:51:05 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-06-22 21:44:58 +00:00
|
|
|
pname = "exult";
|
|
|
|
version = "1.6";
|
2014-07-22 12:51:05 +00:00
|
|
|
|
2006-09-12 00:15:05 +00:00
|
|
|
src = fetchurl {
|
2021-06-22 21:44:58 +00:00
|
|
|
url = "mirror://sourceforge/exult/exult-${version}.tar.gz";
|
2020-06-02 14:55:38 +00:00
|
|
|
sha256 = "1dm27qkxj30567zb70q4acddsizn0xyi3z87hg7lysxdkyv49s3s";
|
2006-09-12 00:15:05 +00:00
|
|
|
};
|
2006-09-12 15:23:28 +00:00
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [ "--disable-tools" ];
|
2008-06-25 15:33:07 +00:00
|
|
|
|
2021-02-20 21:01:53 +00:00
|
|
|
nativeBuildInputs = [ pkg-config unzip ];
|
|
|
|
buildInputs = [ SDL2 libogg libvorbis zlib ];
|
2008-06-25 15:01:04 +00:00
|
|
|
|
2014-07-22 12:51:05 +00:00
|
|
|
enableParallelBuilding = true;
|
2006-10-12 10:53:16 +00:00
|
|
|
|
2019-10-30 01:29:30 +00:00
|
|
|
NIX_LDFLAGS = "-lX11";
|
2019-02-10 13:14:33 +00:00
|
|
|
|
2009-07-09 10:47:17 +00:00
|
|
|
postInstall =
|
|
|
|
''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/share/exult/music
|
2014-07-22 12:51:05 +00:00
|
|
|
unzip -o -d $out/share/exult ${audio}
|
|
|
|
chmod 644 $out/share/exult/*.flx
|
|
|
|
''; # */
|
|
|
|
|
2006-10-12 10:53:16 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://exult.sourceforge.net/";
|
2006-10-12 10:53:16 +00:00
|
|
|
description = "A reimplementation of the Ultima VII game engine";
|
2021-01-15 04:31:39 +00:00
|
|
|
maintainers = [ lib.maintainers.eelco ];
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
hydraPlatforms = lib.platforms.linux; # darwin times out
|
|
|
|
license = lib.licenses.gpl2Plus;
|
2006-10-12 10:53:16 +00:00
|
|
|
};
|
2006-09-12 00:15:05 +00:00
|
|
|
}
|