exult: 1.6 -> 1.8

Fixes: #189172
This commit is contained in:
Azat Bahawi 2022-09-01 13:50:02 +03:00
parent 37d145eafc
commit 660984e323
No known key found for this signature in database
GPG key ID: C8C6BDDB3847F72B

View file

@ -1,47 +1,62 @@
{ lib, stdenv, fetchurl, pkg-config, SDL2, libogg, libvorbis, zlib, unzip }: { lib
, stdenv
let , fetchFromGitHub
, SDL2
# Digital recordings of the music on an original Roland MT-32. So , autoconf
# we don't need actual MIDI playback capability. , automake
audio = fetchurl { , libogg
url = "mirror://sourceforge/exult/exult_audio.zip"; , libtool
sha256 = "0s5wvgy9qja06v38g0qwzpaw76ff96vzd6gb1i3lb9k4hvx0xqbj"; , libvorbis
}; , pkg-config
, zlib
in , enableTools ? false
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "exult"; pname = "exult";
version = "1.6"; version = "1.8";
src = fetchurl { src = fetchFromGitHub {
url = "mirror://sourceforge/exult/exult-${version}.tar.gz"; owner = "exult";
sha256 = "1dm27qkxj30567zb70q4acddsizn0xyi3z87hg7lysxdkyv49s3s"; repo = "exult";
rev = "v${version}";
hash = "sha256-Y7FpgiGuqR4ZG/PNSfLcNcRWeeC7GebUTighXsCfy+E=";
}; };
configureFlags = [ "--disable-tools" ]; nativeBuildInputs = [
autoconf
automake
libtool
pkg-config
];
nativeBuildInputs = [ pkg-config unzip ]; buildInputs = [
buildInputs = [ SDL2 libogg libvorbis zlib ]; SDL2
libogg
libvorbis
zlib
];
enableParallelBuilding = true; preConfigure = ''
./autogen.sh
'';
NIX_LDFLAGS = "-lX11"; configureFlags = lib.optional (!enableTools) "--disable-tools";
postInstall = meta = with lib; {
'' description = "Exult is a project to recreate Ultima VII for modern operating systems";
mkdir -p $out/share/exult/music longDescription = ''
unzip -o -d $out/share/exult ${audio} Ultima VII, an RPG from the early 1990's, still has a huge following. But,
chmod 644 $out/share/exult/*.flx being a DOS game with a very nonstandard memory manager, it is difficult
''; # */ to run it on the latest computers. Exult is a project that created an
Ultima VII game engine that runs on modern operating systems, capable of
meta = { using the data and graphics files that come with the game. Exult aims to
homepage = "http://exult.sourceforge.net/"; let those people who own Ultima VII play the game on modern hardware, in
description = "A reimplementation of the Ultima VII game engine"; as close to (or perhaps even surpassing) its original splendor as is
maintainers = [ lib.maintainers.eelco ]; possible.
platforms = lib.platforms.unix; '';
hydraPlatforms = lib.platforms.linux; # darwin times out homepage = "http://exult.info";
license = lib.licenses.gpl2Plus; license = licenses.gpl2Plus;
maintainers = with maintainers; [ azahi eelco ];
}; };
} }