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