nixpkgs/pkgs/games/exult/default.nix
Patrick Elliott c8ef002830
Update to 1.6
remove patch

Use variable

removed date signature
2020-08-27 17:30:23 -04:00

47 lines
1.2 KiB
Nix

{ stdenv, fetchurl, pkgconfig, 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.
audio = fetchurl {
url = "mirror://sourceforge/exult/exult_audio.zip";
sha256 = "0s5wvgy9qja06v38g0qwzpaw76ff96vzd6gb1i3lb9k4hvx0xqbj";
};
in
stdenv.mkDerivation rec {
name = "exult-1.6";
src = fetchurl {
url = "mirror://sourceforge/exult/${name}.tar.gz";
sha256 = "1dm27qkxj30567zb70q4acddsizn0xyi3z87hg7lysxdkyv49s3s";
};
configureFlags = [ "--disable-tools" ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ SDL2 libogg libvorbis zlib unzip ];
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";
maintainers = [ stdenv.lib.maintainers.eelco ];
platforms = stdenv.lib.platforms.unix;
hydraPlatforms = stdenv.lib.platforms.linux; # darwin times out
license = stdenv.lib.licenses.gpl2Plus;
};
}