2004-01-25 08:51:03 +00:00
|
|
|
{ teletextSupport ? true
|
|
|
|
, jpegSupport ? true
|
|
|
|
, pngSupport ? true
|
2004-06-21 21:41:32 +01:00
|
|
|
, recordingSupport ? true
|
2004-05-01 19:17:56 +01:00
|
|
|
# !!! libXext shouldn't be necessary (it's in x11); but the builder needs it.
|
2004-06-21 19:13:45 +01:00
|
|
|
, stdenv, fetchurl, pkgconfig, perl, python, x11, libXv, libXmu, libXext, libgnomeui
|
|
|
|
, libglade, scrollkeeper, esound, gettext, perlXMLParser
|
2004-06-21 21:41:32 +01:00
|
|
|
, zvbi ? null, libjpeg ? null, libpng ? null, rte ? null }:
|
2004-01-21 09:34:19 +00:00
|
|
|
|
2004-06-21 19:13:45 +01:00
|
|
|
assert pkgconfig != null && perl != null && python != null
|
|
|
|
&& x11 != null && libXv != null && libXmu != null && libgnomeui != null && libglade != null
|
|
|
|
&& scrollkeeper != null && esound != null && gettext != null
|
|
|
|
&& perlXMLParser != null;
|
2004-01-21 09:34:19 +00:00
|
|
|
|
2004-03-29 11:25:25 +01:00
|
|
|
assert teletextSupport -> zvbi != null && zvbi.pngSupport
|
2004-04-01 20:11:59 +01:00
|
|
|
/* !!! && pngSupport && zvbi.libpng == libpng */;
|
2004-01-25 08:51:03 +00:00
|
|
|
|
2004-03-29 11:25:25 +01:00
|
|
|
assert jpegSupport -> libjpeg != null;
|
|
|
|
assert pngSupport -> libpng != null;
|
2004-01-21 09:34:19 +00:00
|
|
|
|
2004-06-21 21:41:32 +01:00
|
|
|
assert recordingSupport -> rte != null;
|
|
|
|
|
2004-03-29 18:23:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2004-08-02 18:49:42 +01:00
|
|
|
name = "zapping-0.7";
|
2004-01-21 09:34:19 +00:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2005-08-22 09:39:27 +01:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/zapping-0.7.tar.bz2;
|
2004-08-02 18:49:42 +01:00
|
|
|
md5 = "dd7b3d920509709692c41c9c6c767746";
|
2004-01-21 09:34:19 +00:00
|
|
|
};
|
|
|
|
|
2005-03-10 12:49:37 +00:00
|
|
|
inherit teletextSupport jpegSupport pngSupport libXext;
|
2004-01-25 08:51:03 +00:00
|
|
|
|
2004-04-01 20:11:59 +01:00
|
|
|
buildInputs = [
|
2005-03-10 12:49:37 +00:00
|
|
|
pkgconfig perl perlXMLParser python x11 libXv libXmu libgnomeui
|
2004-04-01 20:11:59 +01:00
|
|
|
libglade scrollkeeper esound gettext
|
|
|
|
(if teletextSupport then zvbi else null)
|
|
|
|
(if jpegSupport then libjpeg else null)
|
|
|
|
(if pngSupport then libpng else null)
|
2004-06-21 21:41:32 +01:00
|
|
|
(if recordingSupport then rte else null)
|
2004-04-01 20:11:59 +01:00
|
|
|
];
|
2004-01-21 09:34:19 +00:00
|
|
|
}
|