diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2006-09-12 15:23:28 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2006-09-12 15:23:28 +0000 |
commit | 2ad0491113bdcd321642176bb005265c6c74efe9 (patch) | |
tree | c71ac5998b891fb4aadd437355b53a9696ae00c8 /pkgs/games/exult | |
parent | 1dedc5ef8782842f744c36a434cc7b78edca7391 (diff) |
* Exult now with glorious Roland MT-32 music!
svn path=/nixpkgs/trunk/; revision=6503
Diffstat (limited to 'pkgs/games/exult')
-rw-r--r-- | pkgs/games/exult/builder.sh | 11 | ||||
-rw-r--r-- | pkgs/games/exult/default.nix | 22 |
2 files changed, 30 insertions, 3 deletions
diff --git a/pkgs/games/exult/builder.sh b/pkgs/games/exult/builder.sh new file mode 100644 index 000000000000..33ed6ffd3fe6 --- /dev/null +++ b/pkgs/games/exult/builder.sh @@ -0,0 +1,11 @@ +source $stdenv/setup + +postInstall=postInstall +postInstall() { + ensureDir $out/share/exult/music + for i in $musicFiles; do + unzip -o -d $out/share/exult/music $i + done +} + +genericBuild
\ No newline at end of file diff --git a/pkgs/games/exult/default.nix b/pkgs/games/exult/default.nix index 5a5d5c33e5e3..89a3e4c51bea 100644 --- a/pkgs/games/exult/default.nix +++ b/pkgs/games/exult/default.nix @@ -1,12 +1,28 @@ -{stdenv, fetchurl, SDL, SDL_mixer, zlib, libpng}: +{stdenv, fetchurl, SDL, SDL_mixer, zlib, libpng, unzip}: stdenv.mkDerivation { name = "exult-1.2"; + builder = ./builder.sh; + src = fetchurl { url = http://surfnet.dl.sourceforge.net/sourceforge/exult/exult-1.2.tar.gz; md5 = "0fc88dee74a91724d25373ba0a8670ba"; }; - buildInputs = [SDL SDL_mixer zlib libpng]; -# patches = [./gcc4.patch]; + + buildInputs = [SDL SDL_mixer zlib libpng unzip]; + NIX_CFLAGS_COMPILE = "-I${SDL_mixer}/include/SDL"; + + # Digital recordings of the music on an original Roland MT-32. So + # we don't need actual MIDI playback capability. + musicFiles = [ + (fetchurl { + url = http://surfnet.dl.sourceforge.net/sourceforge/exult/U7MusicOGG_1of2.zip; + md5 = "7746d1a9164fd67509107797496553bf"; + }) + (fetchurl { + url = http://surfnet.dl.sourceforge.net/sourceforge/exult/U7MusicOGG_2of2.zip; + md5 = "cdae5956d7c52f35e90317913a660123"; + }) + ]; } |