45a2c87402
fetchurl { url = http://heanet.dl.sourceforge.net/sourceforge/zapping/zapping-0.9.6.tar.bz2; md5 = "8306775c6a11de4d72345b5eee970ea6"; }; you can write fetchurl { url = mirror://sourceforge/zapping/zapping-0.9.6.tar.bz2; md5 = "8306775c6a11de4d72345b5eee970ea6"; }; which causes fetchurl to try the SourceForge mirrors listed in the `sourceforge' attribute in build-support/fetchurl/mirrors.nix. (They're currently tried in sequence, and the lists of mirrors are not configurable yet.) The syntax for mirror URLs is mirror://site/path/to/file, where `site' is currently one of `sourceforge', `gnu' (mirrors of ftp://ftp.gnu.org/pub/gnu) and `kernel' (mirrors of http://www.all.kernel.org/pub/). svn path=/nixpkgs/trunk/; revision=9197
20 lines
567 B
Nix
20 lines
567 B
Nix
{stdenv, fetchurl, SDL, openal, freealut, zlib, libpng, python}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "gemrb-0.2.9";
|
|
|
|
src = fetchurl {
|
|
url = mirror://sourceforge/gemrb/gemrb-0.2.9.tar.gz;
|
|
sha256 = "0mygig4icx87a5skdv33yiwn8q4mv55f5qsks4sn40hrs69gcih0";
|
|
};
|
|
|
|
buildInputs = [SDL openal freealut libpng python];
|
|
|
|
configureFlags = "--with-zlib=${zlib}";
|
|
|
|
meta = {
|
|
description = "A reimplementation of the Infinity Engine "
|
|
+ " (used by Baldur's Gate, Icewind Dale, Planescape: Torment, etc.)";
|
|
homepage = http://gemrb.sourceforge.net/;
|
|
};
|
|
}
|