From 823b3e4770f6f95468a15e9887be76e0535100a3 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 21 Jan 2004 09:34:19 +0000 Subject: [PATCH] * Added `zapping', a TV viewer application. It depends on Gnome, so lots of packages are needed. svn path=/nixpkgs/trunk/; revision=681 --- pkgs/applications/video/zapping/builder.sh | 18 ++ pkgs/applications/video/zapping/default.nix | 30 +++ .../libraries/audiofile/builder.sh | 11 ++ .../libraries/audiofile/default.nix | 12 ++ .../libraries/gnome/GConf/builder.sh | 13 ++ .../libraries/gnome/GConf/default.nix | 23 +++ .../libraries/gnome/ORBit2/builder.sh | 13 ++ .../libraries/gnome/ORBit2/default.nix | 19 ++ .../libraries/gnome/esound/builder.sh | 13 ++ .../libraries/gnome/esound/default.nix | 15 ++ .../gnome/gnome-mime-data/builder.sh | 10 + .../gnome/gnome-mime-data/default.nix | 16 ++ .../libraries/gnome/gnome-vfs/builder.sh | 12 ++ .../libraries/gnome/gnome-vfs/default.nix | 26 +++ .../libraries/{ => gnome}/libIDL/builder.sh | 0 .../libraries/{ => gnome}/libIDL/default.nix | 0 .../libraries/gnome/libart_lgpl/builder.sh | 11 ++ .../libraries/gnome/libart_lgpl/default.nix | 12 ++ .../libraries/gnome/libbonobo/builder.sh | 13 ++ .../libraries/gnome/libbonobo/default.nix | 22 +++ .../libraries/gnome/libbonoboui/builder.sh | 14 ++ .../libraries/gnome/libbonoboui/default.nix | 22 +++ .../libraries/gnome/libglade/builder.sh | 13 ++ .../libraries/gnome/libglade/default.nix | 17 ++ .../libraries/gnome/libgnome/builder.sh | 14 ++ .../libraries/gnome/libgnome/default.nix | 30 +++ .../libraries/gnome/libgnomecanvas/builder.sh | 13 ++ .../gnome/libgnomecanvas/default.nix | 19 ++ .../libraries/gnome/libgnomeui/builder.sh | 13 ++ .../libraries/gnome/libgnomeui/default.nix | 20 ++ pkgs/development/libraries/popt/builder.sh | 11 ++ pkgs/development/libraries/popt/default.nix | 15 ++ .../libraries/scrollkeeper/builder.sh | 15 ++ .../libraries/scrollkeeper/default.nix | 23 +++ .../perl-modules/XML-Parser/builder.sh | 12 ++ .../perl-modules/XML-Parser/default.nix | 16 ++ pkgs/system/all-packages-generic.nix | 175 +++++++++++++++++- pkgs/system/populate-cache.nix | 1 + 38 files changed, 723 insertions(+), 9 deletions(-) create mode 100755 pkgs/applications/video/zapping/builder.sh create mode 100644 pkgs/applications/video/zapping/default.nix create mode 100755 pkgs/development/libraries/audiofile/builder.sh create mode 100644 pkgs/development/libraries/audiofile/default.nix create mode 100755 pkgs/development/libraries/gnome/GConf/builder.sh create mode 100644 pkgs/development/libraries/gnome/GConf/default.nix create mode 100755 pkgs/development/libraries/gnome/ORBit2/builder.sh create mode 100644 pkgs/development/libraries/gnome/ORBit2/default.nix create mode 100755 pkgs/development/libraries/gnome/esound/builder.sh create mode 100644 pkgs/development/libraries/gnome/esound/default.nix create mode 100755 pkgs/development/libraries/gnome/gnome-mime-data/builder.sh create mode 100644 pkgs/development/libraries/gnome/gnome-mime-data/default.nix create mode 100755 pkgs/development/libraries/gnome/gnome-vfs/builder.sh create mode 100644 pkgs/development/libraries/gnome/gnome-vfs/default.nix rename pkgs/development/libraries/{ => gnome}/libIDL/builder.sh (100%) rename pkgs/development/libraries/{ => gnome}/libIDL/default.nix (100%) create mode 100755 pkgs/development/libraries/gnome/libart_lgpl/builder.sh create mode 100644 pkgs/development/libraries/gnome/libart_lgpl/default.nix create mode 100755 pkgs/development/libraries/gnome/libbonobo/builder.sh create mode 100644 pkgs/development/libraries/gnome/libbonobo/default.nix create mode 100755 pkgs/development/libraries/gnome/libbonoboui/builder.sh create mode 100644 pkgs/development/libraries/gnome/libbonoboui/default.nix create mode 100755 pkgs/development/libraries/gnome/libglade/builder.sh create mode 100644 pkgs/development/libraries/gnome/libglade/default.nix create mode 100755 pkgs/development/libraries/gnome/libgnome/builder.sh create mode 100644 pkgs/development/libraries/gnome/libgnome/default.nix create mode 100755 pkgs/development/libraries/gnome/libgnomecanvas/builder.sh create mode 100644 pkgs/development/libraries/gnome/libgnomecanvas/default.nix create mode 100755 pkgs/development/libraries/gnome/libgnomeui/builder.sh create mode 100644 pkgs/development/libraries/gnome/libgnomeui/default.nix create mode 100755 pkgs/development/libraries/popt/builder.sh create mode 100644 pkgs/development/libraries/popt/default.nix create mode 100755 pkgs/development/libraries/scrollkeeper/builder.sh create mode 100644 pkgs/development/libraries/scrollkeeper/default.nix create mode 100755 pkgs/development/perl-modules/XML-Parser/builder.sh create mode 100644 pkgs/development/perl-modules/XML-Parser/default.nix diff --git a/pkgs/applications/video/zapping/builder.sh b/pkgs/applications/video/zapping/builder.sh new file mode 100755 index 000000000000..024ad12c4407 --- /dev/null +++ b/pkgs/applications/video/zapping/builder.sh @@ -0,0 +1,18 @@ +#! /bin/sh + +buildinputs="$pkgconfig $perl $python $x11 $libgnomeui \ + $libglade $scrollkeeper $esound" +. $stdenv/setup || exit 1 + +# !!! hack; this is because $linuxHeaders/config.h includes some +# file autoconf.h. What is that? +export NIX_CFLAGS_COMPILE="-D_LINUX_CONFIG_H $NIX_CFLAGS_COMPILE" + +# Bug: esound is not added to LDFLAGS, and libtool then picks it up from /usr! + +tar xvfj $src || exit 1 +cd zapping-* || exit 1 +LDFLAGS="-L$esound/lib" ./configure --prefix=$out || exit 1 +make || exit 1 +# !!! hack - it tries to setuid to root +make install ZSFB_OWNER=`id -u` ZSFB_GROUP=`id -g` || exit 1 diff --git a/pkgs/applications/video/zapping/default.nix b/pkgs/applications/video/zapping/default.nix new file mode 100644 index 000000000000..caaabe20519e --- /dev/null +++ b/pkgs/applications/video/zapping/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchurl, pkgconfig, perl, python, x11, libgnomeui +, libglade, scrollkeeper, esound }: + +assert !isNull pkgconfig && !isNull perl && !isNull python && + !isNull x11 && !isNull libgnomeui && !isNull libglade && + !isNull scrollkeeper && !isNull esound; + +# !!! zvbi library +# !!! arts, jpeg, png, rte + +derivation { + name = "zapping-0.6.8"; + system = stdenv.system; + + builder = ./builder.sh; + src = fetchurl { + url = http://heanet.dl.sourceforge.net/sourceforge/zapping/zapping-0.7cvs6.tar.bz2; + md5 = "cdedc0088c70f4520c37066ec05cb996"; + }; + + stdenv = stdenv; + pkgconfig = pkgconfig; + perl = perl; + python = python; + x11 = x11; + libgnomeui = libgnomeui; + libglade = libglade; + scrollkeeper = scrollkeeper; + esound = esound; +} diff --git a/pkgs/development/libraries/audiofile/builder.sh b/pkgs/development/libraries/audiofile/builder.sh new file mode 100755 index 000000000000..f213ca74ebdb --- /dev/null +++ b/pkgs/development/libraries/audiofile/builder.sh @@ -0,0 +1,11 @@ +#! /bin/sh + +buildinputs="" +. $stdenv/setup || exit 1 + +tar xvfz $src || exit 1 +cd audiofile-* || exit 1 +./configure --prefix=$out || exit 1 +make || exit 1 +make install || exit 1 +strip -S $out/lib/*.a || exit 1 diff --git a/pkgs/development/libraries/audiofile/default.nix b/pkgs/development/libraries/audiofile/default.nix new file mode 100644 index 000000000000..c39390666b43 --- /dev/null +++ b/pkgs/development/libraries/audiofile/default.nix @@ -0,0 +1,12 @@ +{stdenv, fetchurl}: + +derivation { + name = "audiofile-0.2.3"; + system = stdenv.system; + builder = ./builder.sh; + src = fetchurl { + url = http://www.68k.org/~michael/audiofile/audiofile-0.2.5.tar.gz; + md5 = "fd07c62a17ceafa317929e55e51e26c5"; + }; + stdenv = stdenv; +} diff --git a/pkgs/development/libraries/gnome/GConf/builder.sh b/pkgs/development/libraries/gnome/GConf/builder.sh new file mode 100755 index 000000000000..7d69d2682226 --- /dev/null +++ b/pkgs/development/libraries/gnome/GConf/builder.sh @@ -0,0 +1,13 @@ +#! /bin/sh + +buildinputs="$pkgconfig $perl $glib $gtk $libxml2 $ORBit2 $popt" +. $stdenv/setup || exit 1 + +tar xvfj $src || exit 1 +cd GConf-* || exit 1 +./configure --prefix=$out || exit 1 +make || exit 1 +make install || exit 1 +strip -S $out/lib/*.a || exit 1 + +echo "$ORBit2" > $out/propagated-build-inputs || exit 1 diff --git a/pkgs/development/libraries/gnome/GConf/default.nix b/pkgs/development/libraries/gnome/GConf/default.nix new file mode 100644 index 000000000000..59a7fc6139b4 --- /dev/null +++ b/pkgs/development/libraries/gnome/GConf/default.nix @@ -0,0 +1,23 @@ +{stdenv, fetchurl, pkgconfig, perl, glib, gtk, libxml2, ORBit2, popt}: + +assert !isNull pkgconfig && !isNull perl + && !isNull glib && !isNull gtk + && !isNull libxml2 && !isNull ORBit && !isNull popt; + +derivation { + name = "GConf-2.4.0.1"; + system = stdenv.system; + builder = ./builder.sh; + src = fetchurl { + url = http://ftp.gnome.org/pub/GNOME/desktop/2.4/2.4.1/sources/GConf-2.4.0.1.tar.bz2; + md5 = "2f7548d0bad24d7c4beba54d0ec98a20"; + }; + stdenv = stdenv; + pkgconfig = pkgconfig; + perl = perl; # Perl is not `supposed' to be required, but it is. + glib = glib; + gtk = gtk; + libxml2 = libxml2; + ORBit2 = ORBit2; + popt = popt; +} diff --git a/pkgs/development/libraries/gnome/ORBit2/builder.sh b/pkgs/development/libraries/gnome/ORBit2/builder.sh new file mode 100755 index 000000000000..eab224fcb9ce --- /dev/null +++ b/pkgs/development/libraries/gnome/ORBit2/builder.sh @@ -0,0 +1,13 @@ +#! /bin/sh + +buildinputs="$pkgconfig $glib $libIDL $popt" +. $stdenv/setup || exit 1 + +tar xvfj $src || exit 1 +cd ORBit2-* || exit 1 +./configure --prefix=$out || exit 1 +make || exit 1 +make install || exit 1 +strip -S $out/lib/*.a || exit 1 + +echo "$glib" > $out/propagated-build-inputs || exit 1 diff --git a/pkgs/development/libraries/gnome/ORBit2/default.nix b/pkgs/development/libraries/gnome/ORBit2/default.nix new file mode 100644 index 000000000000..8af6c7fe4ecc --- /dev/null +++ b/pkgs/development/libraries/gnome/ORBit2/default.nix @@ -0,0 +1,19 @@ +{stdenv, fetchurl, pkgconfig, glib, libIDL, popt}: + +assert !isNull pkgconfig && !isNull glib && !isNull libIDL + && !isNull popt; + +derivation { + name = "ORBit2-2.8.3"; + system = stdenv.system; + builder = ./builder.sh; + src = fetchurl { + url = ftp://ftp.gnome.org/pub/gnome/sources/ORBit2/2.8/ORBit2-2.8.3.tar.bz2; + md5 = "c6c4b63de2f70310e33a52a37257ddaf"; + }; + stdenv = stdenv; + pkgconfig = pkgconfig; + glib = glib; + libIDL = libIDL; + popt = popt; +} diff --git a/pkgs/development/libraries/gnome/esound/builder.sh b/pkgs/development/libraries/gnome/esound/builder.sh new file mode 100755 index 000000000000..0e533fd9caf9 --- /dev/null +++ b/pkgs/development/libraries/gnome/esound/builder.sh @@ -0,0 +1,13 @@ +#! /bin/sh + +buildinputs="$audiofile" +. $stdenv/setup || exit 1 + +tar xvfj $src || exit 1 +cd esound-* || exit 1 +./configure --prefix=$out || exit 1 +make || exit 1 +make install || exit 1 +strip -S $out/lib/*.a || exit 1 + +echo "$audiofile" > $out/propagated-build-inputs || exit 1 diff --git a/pkgs/development/libraries/gnome/esound/default.nix b/pkgs/development/libraries/gnome/esound/default.nix new file mode 100644 index 000000000000..cf70712cd6d5 --- /dev/null +++ b/pkgs/development/libraries/gnome/esound/default.nix @@ -0,0 +1,15 @@ +{stdenv, fetchurl, audiofile}: + +assert !isNull audiofile; + +derivation { + name = "esound-0.2.32"; + system = stdenv.system; + builder = ./builder.sh; + src = fetchurl { + url = http://ftp.gnome.org/pub/GNOME/desktop/2.4/2.4.1/sources/esound-0.2.32.tar.bz2; + md5 = "b2a5e71ec8220fea1c22cc042f5f6e63"; + }; + stdenv = stdenv; + audiofile = audiofile; +} diff --git a/pkgs/development/libraries/gnome/gnome-mime-data/builder.sh b/pkgs/development/libraries/gnome/gnome-mime-data/builder.sh new file mode 100755 index 000000000000..46d023e04a37 --- /dev/null +++ b/pkgs/development/libraries/gnome/gnome-mime-data/builder.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +buildinputs="$pkgconfig $perl" +. $stdenv/setup || exit 1 + +tar xvfj $src || exit 1 +cd gnome-mime-data-* || exit 1 +./configure --prefix=$out || exit 1 +make || exit 1 +make install || exit 1 diff --git a/pkgs/development/libraries/gnome/gnome-mime-data/default.nix b/pkgs/development/libraries/gnome/gnome-mime-data/default.nix new file mode 100644 index 000000000000..62e32d01e4da --- /dev/null +++ b/pkgs/development/libraries/gnome/gnome-mime-data/default.nix @@ -0,0 +1,16 @@ +{stdenv, fetchurl, pkgconfig, perl}: + +assert !isNull pkgconfig && !isNull perl; + +derivation { + name = "gnome-mime-data-2.4.0"; + system = stdenv.system; + builder = ./builder.sh; + src = fetchurl { + url = http://ftp.gnome.org/pub/GNOME/desktop/2.4/2.4.1/sources/gnome-mime-data-2.4.0.tar.bz2; + md5 = "b8f1b383a23d734bec8bc33a03cb3690"; + }; + stdenv = stdenv; + pkgconfig = pkgconfig; + perl = perl; +} diff --git a/pkgs/development/libraries/gnome/gnome-vfs/builder.sh b/pkgs/development/libraries/gnome/gnome-vfs/builder.sh new file mode 100755 index 000000000000..752464fe4ec8 --- /dev/null +++ b/pkgs/development/libraries/gnome/gnome-vfs/builder.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +buildinputs="$pkgconfig $perl $glib $libxml2 $GConf $libbonobo \ + $gnomemimedata $popt $bzip2" +. $stdenv/setup || exit 1 + +tar xvfj $src || exit 1 +cd gnome-vfs-* || exit 1 +./configure --prefix=$out || exit 1 +make || exit 1 +make install || exit 1 +strip -S $out/lib/*.a || exit 1 diff --git a/pkgs/development/libraries/gnome/gnome-vfs/default.nix b/pkgs/development/libraries/gnome/gnome-vfs/default.nix new file mode 100644 index 000000000000..a67c2f20deaf --- /dev/null +++ b/pkgs/development/libraries/gnome/gnome-vfs/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchurl, pkgconfig, perl, glib, libxml2, GConf +, libbonobo, gnomemimedata, popt, bzip2 }: + +assert !isNull pkgconfig && !isNull perl && !isNull glib + && !isNull libxml2 && !isNull GConf && !isNull libbonobo + && !isNull gnomemimedata && !isNull bzip2; + +derivation { + name = "gnome-vfs-2.4.1"; + system = stdenv.system; + builder = ./builder.sh; + src = fetchurl { + url = ftp://ftp.gnome.org/pub/gnome/sources/gnome-vfs/2.4/gnome-vfs-2.4.1.tar.bz2; + md5 = "cb7a36076f6a65e40c7f540be3057310"; + }; + stdenv = stdenv; + pkgconfig = pkgconfig; + perl = perl; + glib = glib; + libxml2 = libxml2; + GConf = GConf; + libbonobo = libbonobo; + gnomemimedata = gnomemimedata; + popt = popt; + bzip2 = bzip2; +} diff --git a/pkgs/development/libraries/libIDL/builder.sh b/pkgs/development/libraries/gnome/libIDL/builder.sh similarity index 100% rename from pkgs/development/libraries/libIDL/builder.sh rename to pkgs/development/libraries/gnome/libIDL/builder.sh diff --git a/pkgs/development/libraries/libIDL/default.nix b/pkgs/development/libraries/gnome/libIDL/default.nix similarity index 100% rename from pkgs/development/libraries/libIDL/default.nix rename to pkgs/development/libraries/gnome/libIDL/default.nix diff --git a/pkgs/development/libraries/gnome/libart_lgpl/builder.sh b/pkgs/development/libraries/gnome/libart_lgpl/builder.sh new file mode 100755 index 000000000000..61ebd1faa4dd --- /dev/null +++ b/pkgs/development/libraries/gnome/libart_lgpl/builder.sh @@ -0,0 +1,11 @@ +#! /bin/sh + +buildinputs="" +. $stdenv/setup || exit 1 + +tar xvfj $src || exit 1 +cd libart_lgpl-* || exit 1 +./configure --prefix=$out || exit 1 +make || exit 1 +make install || exit 1 +strip -S $out/lib/*.a || exit 1 diff --git a/pkgs/development/libraries/gnome/libart_lgpl/default.nix b/pkgs/development/libraries/gnome/libart_lgpl/default.nix new file mode 100644 index 000000000000..9241d3e2b96f --- /dev/null +++ b/pkgs/development/libraries/gnome/libart_lgpl/default.nix @@ -0,0 +1,12 @@ +{stdenv, fetchurl}: + +derivation { + name = "libart_lgpl-2.3.16"; + system = stdenv.system; + builder = ./builder.sh; + src = fetchurl { + url = http://ftp.gnome.org/pub/GNOME/desktop/2.4/2.4.1/sources/libart_lgpl-2.3.16.tar.bz2; + md5 = "6bb13292b00649d01400a5b29a6c87cb"; + }; + stdenv = stdenv; +} diff --git a/pkgs/development/libraries/gnome/libbonobo/builder.sh b/pkgs/development/libraries/gnome/libbonobo/builder.sh new file mode 100755 index 000000000000..8e728599a23c --- /dev/null +++ b/pkgs/development/libraries/gnome/libbonobo/builder.sh @@ -0,0 +1,13 @@ +#! /bin/sh + +buildinputs="$pkgconfig $perl $ORBit2 $libxml2 $popt $yacc $flex" +. $stdenv/setup || exit 1 + +tar xvfj $src || exit 1 +cd libbonobo-* || exit 1 +./configure --prefix=$out || exit 1 +make || exit 1 +make install || exit 1 +strip -S $out/lib/*.a || exit 1 + +echo "$ORBit2 $popt" > $out/propagated-build-inputs || exit 1 diff --git a/pkgs/development/libraries/gnome/libbonobo/default.nix b/pkgs/development/libraries/gnome/libbonobo/default.nix new file mode 100644 index 000000000000..9e50e61ac848 --- /dev/null +++ b/pkgs/development/libraries/gnome/libbonobo/default.nix @@ -0,0 +1,22 @@ +{stdenv, fetchurl, pkgconfig, perl, ORBit2, libxml2, popt, yacc, flex}: + +assert !isNull pkgconfig && !isNull perl && !isNull ORBit2 + && !isNull libxml2 && !isNull popt && !isNull yacc && !isNull flex; + +derivation { + name = "libbonobo-2.4.2"; + system = stdenv.system; + builder = ./builder.sh; + src = fetchurl { + url = ftp://ftp.gnome.org/pub/gnome/sources/libbonobo/2.4/libbonobo-2.4.2.tar.bz2; + md5 = "78200cc6ed588c93f0d29177a5f3e003"; + }; + stdenv = stdenv; + pkgconfig = pkgconfig; + perl = perl; + ORBit2 = ORBit2; + libxml2 = libxml2; + popt = popt; + yacc = yacc; + flex = flex; +} diff --git a/pkgs/development/libraries/gnome/libbonoboui/builder.sh b/pkgs/development/libraries/gnome/libbonoboui/builder.sh new file mode 100755 index 000000000000..7351cbf7594b --- /dev/null +++ b/pkgs/development/libraries/gnome/libbonoboui/builder.sh @@ -0,0 +1,14 @@ +#! /bin/sh + +buildinputs="$pkgconfig $perl $libxml2 $libglade $libgnome \ + $libgnomecanvas" +. $stdenv/setup || exit 1 + +tar xvfj $src || exit 1 +cd libbonoboui-* || exit 1 +./configure --prefix=$out || exit 1 +make || exit 1 +make install || exit 1 +strip -S $out/lib/*.a || exit 1 + +echo "$libxml2 $libgnome $libgnomecanvas" > $out/propagated-build-inputs || exit 1 diff --git a/pkgs/development/libraries/gnome/libbonoboui/default.nix b/pkgs/development/libraries/gnome/libbonoboui/default.nix new file mode 100644 index 000000000000..8abe0bee2a1f --- /dev/null +++ b/pkgs/development/libraries/gnome/libbonoboui/default.nix @@ -0,0 +1,22 @@ +{stdenv, fetchurl, pkgconfig, perl, libxml2, libglade, libgnome +, libgnomecanvas}: + +assert !isNull pkgconfig && !isNull perl && !isNull libxml2 + && !isNull libglade && !isNull libgnome && !isNull libgnomecanvas; + +derivation { + name = "libbonoboui-2.4.1"; + system = stdenv.system; + builder = ./builder.sh; + src = fetchurl { + url = http://ftp.gnome.org/pub/GNOME/desktop/2.4/2.4.1/sources/libbonoboui-2.4.1.tar.bz2; + md5 = "943a2d0e9fc7b9f0e97ba869de0c5f2a"; + }; + stdenv = stdenv; + pkgconfig = pkgconfig; + perl = perl; + libxml2 = libxml2; + libglade = libglade; + libgnome = libgnome; + libgnomecanvas = libgnomecanvas; +} diff --git a/pkgs/development/libraries/gnome/libglade/builder.sh b/pkgs/development/libraries/gnome/libglade/builder.sh new file mode 100755 index 000000000000..0d39c60c1f8b --- /dev/null +++ b/pkgs/development/libraries/gnome/libglade/builder.sh @@ -0,0 +1,13 @@ +#! /bin/sh + +buildinputs="$pkgconfig $gtk $libxml2" +. $stdenv/setup || exit 1 + +tar xvfj $src || exit 1 +cd libglade-* || exit 1 +./configure --prefix=$out || exit 1 +make || exit 1 +make install || exit 1 +strip -S $out/lib/*.a || exit 1 + +echo "$gtk $libxml2" > $out/propagated-build-inputs || exit 1 diff --git a/pkgs/development/libraries/gnome/libglade/default.nix b/pkgs/development/libraries/gnome/libglade/default.nix new file mode 100644 index 000000000000..a8d1cc658270 --- /dev/null +++ b/pkgs/development/libraries/gnome/libglade/default.nix @@ -0,0 +1,17 @@ +{stdenv, fetchurl, pkgconfig, gtk, libxml2}: + +assert !isNull pkgconfig && !isNull gtk && !isNull libxml2; + +derivation { + name = "libglade-2.0.1"; + system = stdenv.system; + builder = ./builder.sh; + src = fetchurl { + url = http://ftp.gnome.org/pub/GNOME/desktop/2.4/2.4.1/sources/libglade-2.0.1.tar.bz2; + md5 = "4d93f6b01510013ae429e91af432cfe2"; + }; + stdenv = stdenv; + pkgconfig = pkgconfig; + gtk = gtk; + libxml2 = libxml2; +} diff --git a/pkgs/development/libraries/gnome/libgnome/builder.sh b/pkgs/development/libraries/gnome/libgnome/builder.sh new file mode 100755 index 000000000000..0199536e6571 --- /dev/null +++ b/pkgs/development/libraries/gnome/libgnome/builder.sh @@ -0,0 +1,14 @@ +#! /bin/sh + +buildinputs="$pkgconfig $perl $glib $gnomevfs $libbonobo $GConf \ + $popt $zlib" +. $stdenv/setup || exit 1 + +tar xvfj $src || exit 1 +cd libgnome-* || exit 1 +./configure --prefix=$out || exit 1 +make || exit 1 +make install || exit 1 +strip -S $out/lib/*.a || exit 1 + +echo "$glib $gnomevfs $libbonobo $GConf" > $out/propagated-build-inputs || exit 1 diff --git a/pkgs/development/libraries/gnome/libgnome/default.nix b/pkgs/development/libraries/gnome/libgnome/default.nix new file mode 100644 index 000000000000..35c43c67a151 --- /dev/null +++ b/pkgs/development/libraries/gnome/libgnome/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchurl, pkgconfig, perl, glib, gnomevfs, libbonobo +, GConf, popt, zlib }: + +assert !isNull pkgconfig && !isNull perl && !isNull glib + && !isNull gnomevfs && !isNull libbonobo && !isNull GConf + && !isNull popt && !isNull zlib; + +# !!! TO CHECK: +# libgnome tries to install stuff into GConf (which fails): +# "WARNING: failed to install schema `/schemas/desktop/gnome/url-handlers/https/need-terminal' locale `is': Failed: +# Failed to create file `/nix/store/14d4fc76451786eba9dea087d56dc719-GConf-2.4.0/etc/gconf/gconf.xml.defaults/%gconf.xml': Permission denied" + +derivation { + name = "libgnome-2.0.6"; + system = stdenv.system; + builder = ./builder.sh; + src = fetchurl { + url = ftp://ftp.gnome.org/pub/gnome/sources/libgnome/2.4/libgnome-2.4.0.tar.bz2; + md5 = "caec1e12d64b98a2925a4317ac16429f"; + }; + stdenv = stdenv; + pkgconfig = pkgconfig; + perl = perl; + glib = glib; + gnomevfs = gnomevfs; + libbonobo = libbonobo; + GConf = GConf; + popt = popt; + zlib = zlib; +} diff --git a/pkgs/development/libraries/gnome/libgnomecanvas/builder.sh b/pkgs/development/libraries/gnome/libgnomecanvas/builder.sh new file mode 100755 index 000000000000..a68c9e827b37 --- /dev/null +++ b/pkgs/development/libraries/gnome/libgnomecanvas/builder.sh @@ -0,0 +1,13 @@ +#! /bin/sh + +buildinputs="$pkgconfig $gtk $libart $libglade" +. $stdenv/setup || exit 1 + +tar xvfj $src || exit 1 +cd libgnomecanvas-* || exit 1 +./configure --prefix=$out || exit 1 +make || exit 1 +make install || exit 1 +strip -S $out/lib/*.a || exit 1 + +echo "$gtk $libart" > $out/propagated-build-inputs || exit 1 diff --git a/pkgs/development/libraries/gnome/libgnomecanvas/default.nix b/pkgs/development/libraries/gnome/libgnomecanvas/default.nix new file mode 100644 index 000000000000..4802da9dab99 --- /dev/null +++ b/pkgs/development/libraries/gnome/libgnomecanvas/default.nix @@ -0,0 +1,19 @@ +{stdenv, fetchurl, pkgconfig, gtk, libart, libglade}: + +assert !isNull pkgconfig && !isNull gtk && !isNull libart + && !isNull libglade; + +derivation { + name = "libgnomecanvas-2.4.0"; + system = stdenv.system; + builder = ./builder.sh; + src = fetchurl { + url = http://ftp.gnome.org/pub/GNOME/desktop/2.4/2.4.1/sources/libgnomecanvas-2.4.0.tar.bz2; + md5 = "c212a7cac06b7f9e68ed2de38df6e54d"; + }; + stdenv = stdenv; + pkgconfig = pkgconfig; + gtk = gtk; + libart = libart; + libglade = libglade; +} diff --git a/pkgs/development/libraries/gnome/libgnomeui/builder.sh b/pkgs/development/libraries/gnome/libgnomeui/builder.sh new file mode 100755 index 000000000000..d32e38578f42 --- /dev/null +++ b/pkgs/development/libraries/gnome/libgnomeui/builder.sh @@ -0,0 +1,13 @@ +#! /bin/sh + +buildinputs="$pkgconfig $libgnome $libgnomecanvas $libbonoboui $libglade" +. $stdenv/setup || exit 1 + +tar xvfj $src || exit 1 +cd libgnomeui-* || exit 1 +./configure --prefix=$out || exit 1 +make || exit 1 +make install || exit 1 +strip -S $out/lib/*.a $out/lib/libglade/*/*.a || exit 1 + +echo "$libgnome $libgnomecanvas $libbonoboui" > $out/propagated-build-inputs || exit 1 diff --git a/pkgs/development/libraries/gnome/libgnomeui/default.nix b/pkgs/development/libraries/gnome/libgnomeui/default.nix new file mode 100644 index 000000000000..23f6b5e5b2df --- /dev/null +++ b/pkgs/development/libraries/gnome/libgnomeui/default.nix @@ -0,0 +1,20 @@ +{ stdenv, fetchurl, pkgconfig, libgnome, libgnomecanvas, libbonoboui, libglade }: + +assert !isNull pkgconfig && !isNull libgnome && !isNull libgnomecanvas + && !isNull libbonoboui && !isNull libglade; + +derivation { + name = "libgnomeui-2.4.0.1"; + system = stdenv.system; + builder = ./builder.sh; + src = fetchurl { + url = http://ftp.gnome.org/pub/GNOME/desktop/2.4/2.4.1/sources/libgnomeui-2.4.0.1.tar.bz2; + md5 = "196f4a3f1f4a531ff57acaa879e98dd2"; + }; + stdenv = stdenv; + pkgconfig = pkgconfig; + libgnome = libgnome; + libgnomecanvas = libgnomecanvas; + libbonoboui = libbonoboui; + libglade = libglade; +} diff --git a/pkgs/development/libraries/popt/builder.sh b/pkgs/development/libraries/popt/builder.sh new file mode 100755 index 000000000000..62100048d0a9 --- /dev/null +++ b/pkgs/development/libraries/popt/builder.sh @@ -0,0 +1,11 @@ +#! /bin/sh + +buildinputs="$gettext" +. $stdenv/setup || exit 1 + +tar xvfz $src || exit 1 +cd popt-* || exit 1 +./configure --prefix=$out || exit 1 +make || exit 1 +make install || exit 1 +strip -S $out/lib/*.a || exit 1 diff --git a/pkgs/development/libraries/popt/default.nix b/pkgs/development/libraries/popt/default.nix new file mode 100644 index 000000000000..11cc43d48f8b --- /dev/null +++ b/pkgs/development/libraries/popt/default.nix @@ -0,0 +1,15 @@ +{stdenv, fetchurl, gettext}: + +assert !isNull gettext; + +derivation { + name = "popt-1.7"; + system = stdenv.system; + builder = ./builder.sh; + src = fetchurl { + url = ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.1.x/popt-1.7.tar.gz; + md5 = "5988e7aeb0ae4dac8d83561265984cc9"; + }; + stdenv = stdenv; + gettext = gettext; +} diff --git a/pkgs/development/libraries/scrollkeeper/builder.sh b/pkgs/development/libraries/scrollkeeper/builder.sh new file mode 100755 index 000000000000..4dc559c62286 --- /dev/null +++ b/pkgs/development/libraries/scrollkeeper/builder.sh @@ -0,0 +1,15 @@ +#! /bin/sh + +buildinputs="$perl $libxml2 $libxslt" +. $stdenv/setup || exit 1 + +export PERL5LIB=$perlXMLParser/lib/site_perl:$PERL5LIB + +tar xvfz $src || exit 1 +cd scrollkeeper-* || exit 1 +./configure --prefix=$out \ + --with-xml-catalog=$docbook_xml_dtd/xml/dtd/docbook/docbook.cat \ + || exit 1 +make || exit 1 +make install || exit 1 +strip -S $out/lib/*.a || exit 1 diff --git a/pkgs/development/libraries/scrollkeeper/default.nix b/pkgs/development/libraries/scrollkeeper/default.nix new file mode 100644 index 000000000000..33cd0489af2e --- /dev/null +++ b/pkgs/development/libraries/scrollkeeper/default.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchurl, perl, libxml2, libxslt, docbook_xml_dtd +, perlXMLParser}: + +assert !isNull perl && !isNull libxml2 && !isNull libxslt + && !isNull docbook_xml_dtd && !isNull perlXMLParser; + +# !!! seems to need iconv, but cannot find it since $glibc/bin is not in PATH + +derivation { + name = "scrollkeeper-0.3.14"; + system = stdenv.system; + builder = ./builder.sh; + src = fetchurl { + url = http://heanet.dl.sourceforge.net/sourceforge/scrollkeeper/scrollkeeper-0.3.14.tar.gz; + md5 = "161eb3f29e30e7b24f84eb93ac696155"; + }; + stdenv = stdenv; + perl = perl; + libxml2 = libxml2; + libxslt = libxslt; + docbook_xml_dtd = docbook_xml_dtd; + perlXMLParser = perlXMLParser; +} diff --git a/pkgs/development/perl-modules/XML-Parser/builder.sh b/pkgs/development/perl-modules/XML-Parser/builder.sh new file mode 100755 index 000000000000..3b5d98eebba0 --- /dev/null +++ b/pkgs/development/perl-modules/XML-Parser/builder.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +buildinputs="$perl $expat" +. $stdenv/setup || exit 1 + +tar xvfz $src || exit 1 +cd XML-Parser-* || exit 1 + +perl Makefile.PL EXPATLIBPATH=$expat/lib EXPATINCPATH=$expat/include \ + SITEPREFIX=$out PERLPREFIX=$out || exit 1 +make || exit 1 +make install || exit 1 diff --git a/pkgs/development/perl-modules/XML-Parser/default.nix b/pkgs/development/perl-modules/XML-Parser/default.nix new file mode 100644 index 000000000000..0c0311962ba1 --- /dev/null +++ b/pkgs/development/perl-modules/XML-Parser/default.nix @@ -0,0 +1,16 @@ +{stdenv, fetchurl, perl, expat}: + +assert !isNull perl && !isNull expat; + +derivation { + name = "perl-XML-Parser-2.34"; + system = stdenv.system; + builder = ./builder.sh; + src = fetchurl { + url = http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-2.34.tar.gz; + md5 = "84d9e0001fe01c14867256c3fe115899"; + }; + stdenv = stdenv; + perl = perl; + expat = expat; +} diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index a5545e747898..31ff3c21e043 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -347,6 +347,22 @@ zlib = zlib; }; + popt = (import ../development/libraries/popt) { + fetchurl = fetchurl; + stdenv = stdenv; + gettext = gettext; + }; + + scrollkeeper = (import ../development/libraries/scrollkeeper) { + fetchurl = fetchurl; + stdenv = stdenv; + perl = perl; + libxml2 = libxml2; + libxslt = libxslt; + docbook_xml_dtd = docbook_xml_dtd; + perlXMLParser = perlXMLParser; + }; + glib = (import ../development/libraries/gtk+/glib) { fetchurl = fetchurl; stdenv = stdenv; @@ -407,6 +423,136 @@ libpng = libpng; }; + audiofile = (import ../development/libraries/audiofile) { + fetchurl = fetchurl; + stdenv = stdenv; + }; + + esound = (import ../development/libraries/gnome/esound) { + fetchurl = fetchurl; + stdenv = stdenv; + audiofile = audiofile; + }; + + libIDL = (import ../development/libraries/gnome/libIDL) { + fetchurl = fetchurl; + stdenv = stdenv; + pkgconfig = pkgconfig; + glib = glib; + lex = flex; + yacc = bison; + }; + + ORBit2 = (import ../development/libraries/gnome/ORBit2) { + fetchurl = fetchurl; + stdenv = stdenv; + pkgconfig = pkgconfig; + glib = glib; + libIDL = libIDL; + popt = popt; + }; + + GConf = (import ../development/libraries/gnome/GConf) { + fetchurl = fetchurl; + stdenv = stdenv; + pkgconfig = pkgconfig; + perl = perl; + glib = glib; + gtk = gtk; + libxml2 = libxml2; + ORBit2 = ORBit2; + popt = popt; + }; + + libbonobo = (import ../development/libraries/gnome/libbonobo) { + fetchurl = fetchurl; + stdenv = stdenv; + pkgconfig = pkgconfig; + perl = perl; + ORBit2 = ORBit2; + libxml2 = libxml2; + popt = popt; + yacc = bison; + flex = flex; + }; + + gnomemimedata = (import ../development/libraries/gnome/gnome-mime-data) { + fetchurl = fetchurl; + stdenv = stdenv; + pkgconfig = pkgconfig; + perl = perl; + }; + + gnomevfs = (import ../development/libraries/gnome/gnome-vfs) { + fetchurl = fetchurl; + stdenv = stdenv; + pkgconfig = pkgconfig; + perl = perl; + glib = glib; + libxml2 = libxml2; + GConf = GConf; + libbonobo = libbonobo; + gnomemimedata = gnomemimedata; + popt = popt; + bzip2 = bzip2; # !!! use stdenv.bzip2 + }; + + libgnome = (import ../development/libraries/gnome/libgnome) { + fetchurl = fetchurl; + stdenv = stdenv; + pkgconfig = pkgconfig; + perl = perl; + glib = glib; + gnomevfs = gnomevfs; + libbonobo = libbonobo; + GConf = GConf; + popt = popt; + zlib = zlib; + }; + + libart_lgpl = (import ../development/libraries/gnome/libart_lgpl) { + fetchurl = fetchurl; + stdenv = stdenv; + }; + + libglade = (import ../development/libraries/gnome/libglade) { + fetchurl = fetchurl; + stdenv = stdenv; + pkgconfig = pkgconfig; + gtk = gtk; + libxml2 = libxml2; + }; + + libgnomecanvas = (import ../development/libraries/gnome/libgnomecanvas) { + fetchurl = fetchurl; + stdenv = stdenv; + pkgconfig = pkgconfig; + gtk = gtk; + libart = libart_lgpl; + libglade = libglade; + }; + + libbonoboui = (import ../development/libraries/gnome/libbonoboui) { + fetchurl = fetchurl; + stdenv = stdenv; + pkgconfig = pkgconfig; + perl = perl; + libxml2 = libxml2; + libglade = libglade; + libgnome = libgnome; + libgnomecanvas = libgnomecanvas; + }; + + libgnomeui = (import ../development/libraries/gnome/libgnomeui) { + fetchurl = fetchurl; + stdenv = stdenv; + pkgconfig = pkgconfig; + libgnome = libgnome; + libgnomecanvas = libgnomecanvas; + libbonoboui = libbonoboui; + libglade = libglade; + }; + wxGTK = (import ../development/libraries/wxGTK) { fetchurl = fetchurl; stdenv = stdenv; @@ -421,15 +567,6 @@ glib = glib; }; - libIDL = (import ../development/libraries/libIDL) { - fetchurl = fetchurl; - stdenv = stdenv; - pkgconfig = pkgconfig; - glib = glib; - lex = flex; - yacc = bison; - }; - libdvdcss = (import ../development/libraries/libdvdcss) { fetchurl = fetchurl; stdenv = stdenv; @@ -469,6 +606,13 @@ db4 = db4; }; + perlXMLParser = (import ../development/perl-modules/XML-Parser) { + fetchurl = fetchurl; + stdenv = stdenv; + perl = perl; + expat = expat; + }; + ### SERVERS @@ -596,6 +740,19 @@ alsa = alsaLib; }; + zapping = (import ../applications/video/zapping) { + fetchurl = fetchurl; + stdenv = stdenv; + pkgconfig = pkgconfig; + perl = perl; + python = python; + x11 = xfree86; + libgnomeui = libgnomeui; + libglade = libglade; + scrollkeeper = scrollkeeper; + esound = esound; + }; + gqview = (import ../applications/graphics/gqview) { fetchurl = fetchurl; stdenv = stdenv; diff --git a/pkgs/system/populate-cache.nix b/pkgs/system/populate-cache.nix index d9244228c3a8..1ca75134b970 100644 --- a/pkgs/system/populate-cache.nix +++ b/pkgs/system/populate-cache.nix @@ -17,6 +17,7 @@ let { pkgs.MPlayer pkgs.MPlayerPlugin pkgs.vlc + pkgs.zapping pkgs.gqview pkgs.hello pkgs.nxml