* Support for mirror:// URLs a la Gentoo (NIXPKGS-70). Instead of

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
This commit is contained in:
Eelco Dolstra
2007-08-27 12:44:01 +00:00
parent 6d4fa01f1e
commit 45a2c87402
10 changed files with 109 additions and 35 deletions
+3 -3
View File
@@ -1,11 +1,11 @@
{stdenv, fetchurl, SDL, openal, freealut, zlib, libpng, python}:
stdenv.mkDerivation {
name = "gemrb-0.2.8";
name = "gemrb-0.2.9";
src = fetchurl {
url = http://heanet.dl.sourceforge.net/sourceforge/gemrb/gemrb-0.2.8.tar.gz;
sha256 = "1a0pald30m941i67nc7silz36pc1ixrfgkvsr7dcac6mwqmi89kr";
url = mirror://sourceforge/gemrb/gemrb-0.2.9.tar.gz;
sha256 = "0mygig4icx87a5skdv33yiwn8q4mv55f5qsks4sn40hrs69gcih0";
};
buildInputs = [SDL openal freealut libpng python];