2020-06-02 16:55:38 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, SDL2, libogg, libvorbis, zlib, unzip }:
|
2006-09-12 02:15:05 +02:00
|
|
|
|
2009-07-09 12:47:17 +02: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 14:51:05 +02:00
|
|
|
audio = fetchurl {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "mirror://sourceforge/exult/exult_audio.zip";
|
2014-07-22 14:51:05 +02:00
|
|
|
sha256 = "0s5wvgy9qja06v38g0qwzpaw76ff96vzd6gb1i3lb9k4hvx0xqbj";
|
|
|
|
};
|
2009-07-09 12:47:17 +02:00
|
|
|
|
|
|
|
in
|
|
|
|
|
2014-07-22 14:51:05 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2020-06-02 16:55:38 +02:00
|
|
|
name = "exult-1.6";
|
2014-07-22 14:51:05 +02:00
|
|
|
|
2006-09-12 02:15:05 +02:00
|
|
|
src = fetchurl {
|
2014-07-22 14:51:05 +02:00
|
|
|
url = "mirror://sourceforge/exult/${name}.tar.gz";
|
2020-06-02 16:55:38 +02:00
|
|
|
sha256 = "1dm27qkxj30567zb70q4acddsizn0xyi3z87hg7lysxdkyv49s3s";
|
2006-09-12 02:15:05 +02:00
|
|
|
};
|
2006-09-12 17:23:28 +02:00
|
|
|
|
2018-07-25 23:44:21 +02:00
|
|
|
configureFlags = [ "--disable-tools" ];
|
2008-06-25 17:33:07 +02:00
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2020-06-02 16:55:38 +02:00
|
|
|
buildInputs = [ SDL2 libogg libvorbis zlib unzip ];
|
2008-06-25 17:01:04 +02:00
|
|
|
|
2014-07-22 14:51:05 +02:00
|
|
|
enableParallelBuilding = true;
|
2006-10-12 12:53:16 +02:00
|
|
|
|
2019-10-30 02:29:30 +01:00
|
|
|
NIX_LDFLAGS = "-lX11";
|
2019-02-10 14:14:33 +01:00
|
|
|
|
2009-07-09 12:47:17 +02:00
|
|
|
postInstall =
|
|
|
|
''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/share/exult/music
|
2014-07-22 14:51:05 +02:00
|
|
|
unzip -o -d $out/share/exult ${audio}
|
|
|
|
chmod 644 $out/share/exult/*.flx
|
|
|
|
''; # */
|
|
|
|
|
2006-10-12 12:53:16 +02:00
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://exult.sourceforge.net/";
|
2006-10-12 12:53:16 +02:00
|
|
|
description = "A reimplementation of the Ultima VII game engine";
|
2014-07-22 14:51:05 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2018-06-24 01:08:32 +02:00
|
|
|
hydraPlatforms = stdenv.lib.platforms.linux; # darwin times out
|
2018-08-05 16:46:45 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2006-10-12 12:53:16 +02:00
|
|
|
};
|
2006-09-12 02:15:05 +02:00
|
|
|
}
|