nixpkgs/pkgs/games/exult/default.nix

47 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config, SDL2, libogg, libvorbis, zlib, unzip }:
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 {
url = "mirror://sourceforge/exult/exult_audio.zip";
2014-07-22 14:51:05 +02:00
sha256 = "0s5wvgy9qja06v38g0qwzpaw76ff96vzd6gb1i3lb9k4hvx0xqbj";
};
in
2014-07-22 14:51:05 +02:00
stdenv.mkDerivation rec {
name = "exult-1.6";
2014-07-22 14:51:05 +02:00
src = fetchurl {
2014-07-22 14:51:05 +02:00
url = "mirror://sourceforge/exult/${name}.tar.gz";
sha256 = "1dm27qkxj30567zb70q4acddsizn0xyi3z87hg7lysxdkyv49s3s";
};
2018-07-25 23:44:21 +02:00
configureFlags = [ "--disable-tools" ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ SDL2 libogg libvorbis zlib unzip ];
2014-07-22 14:51:05 +02:00
enableParallelBuilding = true;
2019-10-30 02:29:30 +01:00
NIX_LDFLAGS = "-lX11";
postInstall =
''
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
''; # */
meta = {
homepage = "http://exult.sourceforge.net/";
description = "A reimplementation of the Ultima VII game engine";
2021-01-15 05:31:39 +01:00
maintainers = [ lib.maintainers.eelco ];
platforms = lib.platforms.unix;
hydraPlatforms = lib.platforms.linux; # darwin times out
license = lib.licenses.gpl2Plus;
};
}