mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
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
40 lines
1.2 KiB
Nix
40 lines
1.2 KiB
Nix
{ teletextSupport ? true
|
|
, jpegSupport ? true
|
|
, pngSupport ? true
|
|
, recordingSupport ? true
|
|
# !!! libXext shouldn't be necessary (it's in x11); but the builder needs it.
|
|
, stdenv, fetchurl, pkgconfig, perl, python, x11
|
|
, libXv, libXmu, libXext, libgnomeui
|
|
, libglade, scrollkeeper, esound, gettext, perlXMLParser
|
|
, zvbi ? null, libjpeg ? null, libpng ? null, rte ? null }:
|
|
|
|
assert teletextSupport -> zvbi != null && zvbi.pngSupport
|
|
/* !!! && pngSupport && zvbi.libpng == libpng */;
|
|
|
|
assert jpegSupport -> libjpeg != null;
|
|
assert pngSupport -> libpng != null;
|
|
|
|
assert recordingSupport -> rte != null;
|
|
|
|
stdenv.mkDerivation {
|
|
name = "zapping-0.9.6";
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
|
url = mirror://sourceforge/zapping/zapping-0.9.6.tar.bz2;
|
|
md5 = "8306775c6a11de4d72345b5eee970ea6";
|
|
};
|
|
|
|
inherit teletextSupport jpegSupport pngSupport libXext;
|
|
|
|
buildInputs = [
|
|
pkgconfig perl perlXMLParser python x11 libXv libXmu libgnomeui
|
|
libglade scrollkeeper esound gettext
|
|
(if teletextSupport then zvbi else null)
|
|
(if jpegSupport then libjpeg else null)
|
|
(if pngSupport then libpng else null)
|
|
(if recordingSupport then rte else null)
|
|
];
|
|
}
|