exult: 1.6 -> 1.8

Fixes: #189172

+50 -35
+50 -35
pkgs/games/exult/default.nix
··· 1 - { lib, stdenv, fetchurl, pkg-config, SDL2, libogg, libvorbis, zlib, unzip }: 2 - 3 - let 4 - 5 - # Digital recordings of the music on an original Roland MT-32. So 6 - # we don't need actual MIDI playback capability. 7 - audio = fetchurl { 8 - url = "mirror://sourceforge/exult/exult_audio.zip"; 9 - sha256 = "0s5wvgy9qja06v38g0qwzpaw76ff96vzd6gb1i3lb9k4hvx0xqbj"; 10 - }; 11 - 12 - in 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , SDL2 5 + , autoconf 6 + , automake 7 + , libogg 8 + , libtool 9 + , libvorbis 10 + , pkg-config 11 + , zlib 12 + , enableTools ? false 13 + }: 13 14 14 15 stdenv.mkDerivation rec { 15 16 pname = "exult"; 16 - version = "1.6"; 17 + version = "1.8"; 17 18 18 - src = fetchurl { 19 - url = "mirror://sourceforge/exult/exult-${version}.tar.gz"; 20 - sha256 = "1dm27qkxj30567zb70q4acddsizn0xyi3z87hg7lysxdkyv49s3s"; 19 + src = fetchFromGitHub { 20 + owner = "exult"; 21 + repo = "exult"; 22 + rev = "v${version}"; 23 + hash = "sha256-Y7FpgiGuqR4ZG/PNSfLcNcRWeeC7GebUTighXsCfy+E="; 21 24 }; 22 25 23 - configureFlags = [ "--disable-tools" ]; 26 + nativeBuildInputs = [ 27 + autoconf 28 + automake 29 + libtool 30 + pkg-config 31 + ]; 24 32 25 - nativeBuildInputs = [ pkg-config unzip ]; 26 - buildInputs = [ SDL2 libogg libvorbis zlib ]; 33 + buildInputs = [ 34 + SDL2 35 + libogg 36 + libvorbis 37 + zlib 38 + ]; 27 39 28 - enableParallelBuilding = true; 40 + preConfigure = '' 41 + ./autogen.sh 42 + ''; 29 43 30 - NIX_LDFLAGS = "-lX11"; 31 - 32 - postInstall = 33 - '' 34 - mkdir -p $out/share/exult/music 35 - unzip -o -d $out/share/exult ${audio} 36 - chmod 644 $out/share/exult/*.flx 37 - ''; # */ 44 + configureFlags = lib.optional (!enableTools) "--disable-tools"; 38 45 39 - meta = { 40 - homepage = "http://exult.sourceforge.net/"; 41 - description = "A reimplementation of the Ultima VII game engine"; 42 - maintainers = [ lib.maintainers.eelco ]; 43 - platforms = lib.platforms.unix; 44 - hydraPlatforms = lib.platforms.linux; # darwin times out 45 - license = lib.licenses.gpl2Plus; 46 + meta = with lib; { 47 + description = "Exult is a project to recreate Ultima VII for modern operating systems"; 48 + longDescription = '' 49 + Ultima VII, an RPG from the early 1990's, still has a huge following. But, 50 + being a DOS game with a very nonstandard memory manager, it is difficult 51 + to run it on the latest computers. Exult is a project that created an 52 + Ultima VII game engine that runs on modern operating systems, capable of 53 + using the data and graphics files that come with the game. Exult aims to 54 + let those people who own Ultima VII play the game on modern hardware, in 55 + as close to (or perhaps even surpassing) its original splendor as is 56 + possible. 57 + ''; 58 + homepage = "http://exult.info"; 59 + license = licenses.gpl2Plus; 60 + maintainers = with maintainers; [ azahi eelco ]; 46 61 }; 47 62 }