3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/exult/default.nix

46 lines
1.1 KiB
Nix
Raw Normal View History

2014-07-22 13:51:05 +01:00
{ stdenv, fetchurl, pkgconfig, SDL, 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 13:51:05 +01:00
audio = fetchurl {
url = mirror://sourceforge/exult/exult_audio.zip;
sha256 = "0s5wvgy9qja06v38g0qwzpaw76ff96vzd6gb1i3lb9k4hvx0xqbj";
};
in
2014-07-22 13:51:05 +01:00
stdenv.mkDerivation rec {
name = "exult-1.4.9rc1";
src = fetchurl {
2014-07-22 13:51:05 +01:00
url = "mirror://sourceforge/exult/${name}.tar.gz";
sha256 = "0a03a2l3ji6h48n106d4w55l8v6lni1axniafnvvv5c5n3nz5bgd";
};
2014-07-22 13:51:05 +01:00
configureFlags = "--disable-tools";
2014-07-22 13:51:05 +01:00
patches =
[ # Arch Linux patch set.
./arch.patch
];
buildInputs = [ pkgconfig SDL libogg libvorbis zlib unzip ];
2014-07-22 13:51:05 +01:00
enableParallelBuilding = true;
postInstall =
''
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
''; # */
meta = {
homepage = http://exult.sourceforge.net/;
description = "A reimplementation of the Ultima VII game engine";
2014-07-22 13:51:05 +01:00
maintainers = [ stdenv.lib.maintainers.eelco ];
};
}