2006-09-12 16:23:28 +01:00
|
|
|
{stdenv, fetchurl, SDL, SDL_mixer, zlib, libpng, unzip}:
|
2006-09-12 01:15:05 +01:00
|
|
|
|
2009-07-09 11:47:17 +01:00
|
|
|
let
|
|
|
|
|
|
|
|
# Digital recordings of the music on an original Roland MT-32. So
|
|
|
|
# we don't need actual MIDI playback capability.
|
|
|
|
musicFiles =
|
|
|
|
[ (fetchurl {
|
|
|
|
url = mirror://sourceforge/exult/U7MusicOGG_1of2.zip;
|
|
|
|
md5 = "7746d1a9164fd67509107797496553bf";
|
|
|
|
})
|
|
|
|
(fetchurl {
|
|
|
|
url = mirror://sourceforge/exult/U7MusicOGG_2of2.zip;
|
|
|
|
md5 = "cdae5956d7c52f35e90317913a660123";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
in
|
|
|
|
|
2006-09-12 01:15:05 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "exult-1.2";
|
2006-09-12 16:23:28 +01:00
|
|
|
|
2006-09-12 01:15:05 +01:00
|
|
|
src = fetchurl {
|
2007-08-27 14:01:33 +01:00
|
|
|
url = mirror://sourceforge/exult/exult-1.2.tar.gz;
|
2006-09-12 01:15:05 +01:00
|
|
|
md5 = "0fc88dee74a91724d25373ba0a8670ba";
|
|
|
|
};
|
2006-09-12 16:23:28 +01:00
|
|
|
|
2008-06-25 16:01:04 +01:00
|
|
|
# Patches for building on x86_64 and gcc 4.x.
|
|
|
|
patches = [
|
|
|
|
(fetchurl {
|
|
|
|
url = "http://www.rocklinux.net/sources/package/stf/exult/exult-gcc4.patch";
|
|
|
|
sha256 = "1jlikxcpsi3yfchan3jbyi66fcyr18m7kfmsa946lwh3kzckszm7";
|
|
|
|
})
|
2008-06-25 16:33:07 +01:00
|
|
|
|
|
|
|
# From http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/games-engines/exult/files/exult-1.2-64bits.patch?rev=1.1
|
|
|
|
./64bits.patch
|
2008-06-25 16:01:04 +01:00
|
|
|
];
|
|
|
|
|
2006-09-12 16:23:28 +01:00
|
|
|
buildInputs = [SDL SDL_mixer zlib libpng unzip];
|
|
|
|
|
2006-09-12 01:15:05 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${SDL_mixer}/include/SDL";
|
2006-10-12 11:53:16 +01:00
|
|
|
|
2009-07-09 11:47:17 +01:00
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
ensureDir $out/share/exult/music
|
|
|
|
for i in $musicFiles; do
|
|
|
|
unzip -o -d $out/share/exult/music $i
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2006-10-12 11:53:16 +01:00
|
|
|
meta = {
|
2008-06-25 16:01:04 +01:00
|
|
|
homepage = http://exult.sourceforge.net/;
|
2006-10-12 11:53:16 +01:00
|
|
|
description = "A reimplementation of the Ultima VII game engine";
|
2009-07-09 11:47:17 +01:00
|
|
|
maintainers = [stdenv.lib.maintainers.eelco];
|
2006-10-12 11:53:16 +01:00
|
|
|
};
|
2006-09-12 01:15:05 +01:00
|
|
|
}
|