3
0
Fork 0
forked from mirrors/nixpkgs

* Refactoring.

svn path=/nixpkgs/trunk/; revision=16269
This commit is contained in:
Eelco Dolstra 2009-07-09 10:47:17 +00:00
parent 7af5fa0e96
commit 9611cf2048
2 changed files with 26 additions and 24 deletions

View file

@ -1,10 +0,0 @@
source $stdenv/setup
postInstall() {
ensureDir $out/share/exult/music
for i in $musicFiles; do
unzip -o -d $out/share/exult/music $i
done
}
genericBuild

View file

@ -1,8 +1,24 @@
{stdenv, fetchurl, SDL, SDL_mixer, zlib, libpng, unzip}:
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
stdenv.mkDerivation {
name = "exult-1.2";
builder = ./builder.sh;
src = fetchurl {
url = mirror://sourceforge/exult/exult-1.2.tar.gz;
@ -23,22 +39,18 @@ stdenv.mkDerivation {
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 = mirror://sourceforge/exult/U7MusicOGG_1of2.zip;
md5 = "7746d1a9164fd67509107797496553bf";
})
(fetchurl {
url = mirror://sourceforge/exult/U7MusicOGG_2of2.zip;
md5 = "cdae5956d7c52f35e90317913a660123";
})
];
postInstall =
''
ensureDir $out/share/exult/music
for i in $musicFiles; do
unzip -o -d $out/share/exult/music $i
done
'';
meta = {
homepage = http://exult.sourceforge.net/;
description = "A reimplementation of the Ultima VII game engine";
maintainers = [stdenv.lib.maintainers.eelco];
};
}