* propagated-build-inputs should now be placed in $out/nix-support.

svn path=/nixpkgs/trunk/; revision=823
This commit is contained in:
Eelco Dolstra 2004-03-09 10:59:55 +00:00
parent c8455be838
commit d74192ee38
24 changed files with 223 additions and 198 deletions

View File

@ -1,18 +1,19 @@
#! /bin/sh #! /bin/sh -e
buildinputs="$freetype $expat $x11 $ed" buildinputs="$freetype $expat $x11 $ed"
. $stdenv/setup || exit 1 . $stdenv/setup
# Fontconfig generates a bad `fonts.conf' file is the timezone is not known # Fontconfig generates a bad `fonts.conf' file is the timezone is not known
# (because it calls `date'). # (because it calls `date').
export TZ=UTC export TZ=UTC
tar xvfz $src || exit 1 tar xvfz $src
cd fontconfig-* || exit 1 cd fontconfig-*
./configure --prefix=$out --with-confdir=$out/etc/fonts \ ./configure --prefix=$out --with-confdir=$out/etc/fonts \
--x-includes=$x11/include --x-libraries=$x11/lib \ --x-includes=$x11/include --x-libraries=$x11/lib \
--with-expat-includes=$expat/include --with-expat-lib=$expat/lib || exit 1 --with-expat-includes=$expat/include --with-expat-lib=$expat/lib
make || exit 1 make
make install || exit 1 make install
echo "$freetype" > $out/propagated-build-inputs || exit 1 mkdir $out/nix-support
echo "$freetype" > $out/nix-support/propagated-build-inputs

View File

@ -2,25 +2,25 @@
# glibc cannot have itself in its rpath. # glibc cannot have itself in its rpath.
export NIX_NO_SELF_RPATH=1 export NIX_NO_SELF_RPATH=1
. $stdenv/setup || exit 1 . $stdenv/setup
tar xvfj $glibcSrc || exit 1 tar xvfj $glibcSrc
(cd glibc-* && tar xvfj $linuxthreadsSrc) || exit 1 (cd glibc-* && tar xvfj $linuxthreadsSrc)
(cd glibc-* && patch -p1 < $vaargsPatch) || exit 1 (cd glibc-* && patch -p1 < $vaargsPatch)
mkdir build || exit 1 mkdir build
cd build || exit 1 cd build
LDFLAGS=-Wl,-S ../glibc-*/configure --prefix=$out --enable-add-ons --disable-profile || exit 1 LDFLAGS=-Wl,-S ../glibc-*/configure --prefix=$out --enable-add-ons --disable-profile
make || exit 1 make
make install || exit 1 make install
#make localedata/install-locales || exit 1 #make localedata/install-locales
strip -S $out/lib/*.a $out/lib/*.so $out/lib/gconv/*.so strip -S $out/lib/*.a $out/lib/*.so $out/lib/gconv/*.so || true
strip -s $out/bin/* $out/sbin/* $out/libexec/* strip -s $out/bin/* $out/sbin/* $out/libexec/* || true
ln -sf /etc/ld.so.cache $out/etc/ld.so.cache || exit 1 ln -sf /etc/ld.so.cache $out/etc/ld.so.cache
(cd $out/include && ln -s $kernelHeaders/include/* .) || exit 1 (cd $out/include && ln -s $kernelHeaders/include/* .)
exit 0 exit 0

View File

@ -1,4 +1,6 @@
{stdenv, fetchurl, kernelHeaders}: derivation { {stdenv, fetchurl, kernelHeaders}:
derivation {
name = "glibc-2.3.2"; name = "glibc-2.3.2";
system = stdenv.system; system = stdenv.system;
builder = ./builder.sh; builder = ./builder.sh;
@ -16,6 +18,5 @@
# later releases of glibc won't need this. # later releases of glibc won't need this.
vaargsPatch = ./glibc-2.3.2-sscanf-1.patch; vaargsPatch = ./glibc-2.3.2-sscanf-1.patch;
stdenv = stdenv; inherit stdenv kernelHeaders;
kernelHeaders = kernelHeaders;
} }

View File

@ -1,13 +1,14 @@
#! /bin/sh #! /bin/sh -e
buildinputs="$pkgconfig $perl $glib $gtk $libxml2 $ORBit2 $popt" buildinputs="$pkgconfig $perl $glib $gtk $libxml2 $ORBit2 $popt"
. $stdenv/setup || exit 1 . $stdenv/setup
tar xvfj $src || exit 1 tar xvfj $src
cd GConf-* || exit 1 cd GConf-*
./configure --prefix=$out || exit 1 ./configure --prefix=$out
make || exit 1 make
make install || exit 1 make install
strip -S $out/lib/*.a || exit 1 strip -S $out/lib/*.a
echo "$ORBit2" > $out/propagated-build-inputs || exit 1 mkdir $out/nix-support
echo "$ORBit2" > $out/nix-support/propagated-build-inputs

View File

@ -1,13 +1,14 @@
#! /bin/sh #! /bin/sh -e
buildinputs="$pkgconfig $glib $libIDL $popt" buildinputs="$pkgconfig $glib $libIDL $popt"
. $stdenv/setup || exit 1 . $stdenv/setup
tar xvfj $src || exit 1 tar xvfj $src
cd ORBit2-* || exit 1 cd ORBit2-*
./configure --prefix=$out || exit 1 ./configure --prefix=$out
make || exit 1 make
make install || exit 1 make install
strip -S $out/lib/*.a || exit 1 strip -S $out/lib/*.a
echo "$glib" > $out/propagated-build-inputs || exit 1 mkdir $out/nix-support
echo "$glib" > $out/nix-support/propagated-build-inputs

View File

@ -1,13 +1,14 @@
#! /bin/sh #! /bin/sh -e
buildinputs="$audiofile" buildinputs="$audiofile"
. $stdenv/setup || exit 1 . $stdenv/setup
tar xvfj $src || exit 1 tar xvfj $src
cd esound-* || exit 1 cd esound-*
./configure --prefix=$out || exit 1 ./configure --prefix=$out
make || exit 1 make
make install || exit 1 make install
strip -S $out/lib/*.a || exit 1 strip -S $out/lib/*.a
echo "$audiofile" > $out/propagated-build-inputs || exit 1 mkdir $out/nix-support
echo "$audiofile" > $out/nix-support/propagated-build-inputs

View File

@ -1,13 +1,14 @@
#! /bin/sh #! /bin/sh -e
buildinputs="$pkgconfig $perl $ORBit2 $libxml2 $popt $yacc $flex" buildinputs="$pkgconfig $perl $ORBit2 $libxml2 $popt $yacc $flex"
. $stdenv/setup || exit 1 . $stdenv/setup
tar xvfj $src || exit 1 tar xvfj $src
cd libbonobo-* || exit 1 cd libbonobo-*
./configure --prefix=$out || exit 1 ./configure --prefix=$out
make || exit 1 make
make install || exit 1 make install
strip -S $out/lib/*.a || exit 1 strip -S $out/lib/*.a
echo "$ORBit2 $popt" > $out/propagated-build-inputs || exit 1 mkdir $out/nix-support
echo "$ORBit2 $popt" > $out/nix-support/propagated-build-inputs

View File

@ -1,14 +1,15 @@
#! /bin/sh #! /bin/sh -e
buildinputs="$pkgconfig $perl $libxml2 $libglade $libgnome \ buildinputs="$pkgconfig $perl $libxml2 $libglade $libgnome \
$libgnomecanvas" $libgnomecanvas"
. $stdenv/setup || exit 1 . $stdenv/setup
tar xvfj $src || exit 1 tar xvfj $src
cd libbonoboui-* || exit 1 cd libbonoboui-*
./configure --prefix=$out || exit 1 ./configure --prefix=$out
make || exit 1 make
make install || exit 1 make install
strip -S $out/lib/*.a || exit 1 strip -S $out/lib/*.a
echo "$libxml2 $libgnome $libgnomecanvas" > $out/propagated-build-inputs || exit 1 mkdir $out/nix-support
echo "$libxml2 $libgnome $libgnomecanvas" > $out/nix-support/propagated-build-inputs

View File

@ -1,13 +1,14 @@
#! /bin/sh #! /bin/sh -e
buildinputs="$pkgconfig $gtk $libxml2" buildinputs="$pkgconfig $gtk $libxml2"
. $stdenv/setup || exit 1 . $stdenv/setup
tar xvfj $src || exit 1 tar xvfj $src
cd libglade-* || exit 1 cd libglade-*
./configure --prefix=$out || exit 1 ./configure --prefix=$out
make || exit 1 make
make install || exit 1 make install
strip -S $out/lib/*.a || exit 1 strip -S $out/lib/*.a
echo "$gtk $libxml2" > $out/propagated-build-inputs || exit 1 mkdir $out/nix-support
echo "$gtk $libxml2" > $out/nix-support/propagated-build-inputs

View File

@ -1,14 +1,15 @@
#! /bin/sh #! /bin/sh -e
buildinputs="$pkgconfig $perl $glib $gnomevfs $libbonobo $GConf \ buildinputs="$pkgconfig $perl $glib $gnomevfs $libbonobo $GConf \
$popt $zlib" $popt $zlib"
. $stdenv/setup || exit 1 . $stdenv/setup
tar xvfj $src || exit 1 tar xvfj $src
cd libgnome-* || exit 1 cd libgnome-*
./configure --prefix=$out || exit 1 ./configure --prefix=$out
make || exit 1 make
make install || exit 1 make install
strip -S $out/lib/*.a || exit 1 strip -S $out/lib/*.a
echo "$glib $gnomevfs $libbonobo $GConf" > $out/propagated-build-inputs || exit 1 mkdir $out/nix-support
echo "$glib $gnomevfs $libbonobo $GConf" > $out/nix-support/propagated-build-inputs

View File

@ -1,13 +1,14 @@
#! /bin/sh #! /bin/sh -e
buildinputs="$pkgconfig $gtk $libart $libglade" buildinputs="$pkgconfig $gtk $libart $libglade"
. $stdenv/setup || exit 1 . $stdenv/setup
tar xvfj $src || exit 1 tar xvfj $src
cd libgnomecanvas-* || exit 1 cd libgnomecanvas-*
./configure --prefix=$out || exit 1 ./configure --prefix=$out
make || exit 1 make
make install || exit 1 make install
strip -S $out/lib/*.a || exit 1 strip -S $out/lib/*.a
echo "$gtk $libart" > $out/propagated-build-inputs || exit 1 mkdir $out/nix-support
echo "$gtk $libart" > $out/nix-support/propagated-build-inputs

View File

@ -1,13 +1,14 @@
#! /bin/sh #! /bin/sh -e
buildinputs="$pkgconfig $libgnome $libgnomecanvas $libbonoboui $libglade" buildinputs="$pkgconfig $libgnome $libgnomecanvas $libbonoboui $libglade"
. $stdenv/setup || exit 1 . $stdenv/setup
tar xvfj $src || exit 1 tar xvfj $src
cd libgnomeui-* || exit 1 cd libgnomeui-*
./configure --prefix=$out || exit 1 ./configure --prefix=$out
make || exit 1 make
make install || exit 1 make install
strip -S $out/lib/*.a $out/lib/libglade/*/*.a || exit 1 strip -S $out/lib/*.a $out/lib/libglade/*/*.a
echo "$libgnome $libgnomecanvas $libbonoboui" > $out/propagated-build-inputs || exit 1 mkdir $out/nix-support
echo "$libgnome $libgnomecanvas $libbonoboui" > $out/nix-support/propagated-build-inputs

View File

@ -1,12 +1,13 @@
#! /bin/sh #! /bin/sh
buildinputs="$x11 $glib" buildinputs="$x11 $glib"
. $stdenv/setup || exit 1 . $stdenv/setup
tar xvfz $src || exit 1 tar xvfz $src
cd gtk+-* || exit 1 cd gtk+-*
./configure --prefix=$out --x-includes=$x11/include --x-libraries=$x11/lib || exit 1 ./configure --prefix=$out --x-includes=$x11/include --x-libraries=$x11/lib
make || exit 1 make
make install || exit 1 make install
echo "$x11 $glib" > $out/propagated-build-inputs || exit 1 mkdir $out/nix-support
echo "$x11 $glib" > $out/nix-support/propagated-build-inputs

View File

@ -1,10 +1,13 @@
#! /bin/sh #! /bin/sh -e
buildinputs="$pkgconfig $perl $glib" buildinputs="$pkgconfig $perl $glib"
. $stdenv/setup || exit 1 . $stdenv/setup
tar xvfj $src || exit 1 tar xvfj $src
cd atk-* || exit 1 cd atk-*
./configure --prefix=$out || exit 1 ./configure --prefix=$out
make || exit 1 make
make install || exit 1 make install
mkdir $out/nix-support
echo "$glib" > $out/nix-support/propagated-build-inputs

View File

@ -1,12 +1,13 @@
#! /bin/sh #! /bin/sh -e
buildinputs="$pkgconfig $x11 $glib $atk $pango $perl $libtiff $libjpeg $libpng" buildinputs="$pkgconfig $x11 $glib $atk $pango $perl $libtiff $libjpeg $libpng"
. $stdenv/setup || exit 1 . $stdenv/setup
tar xvfj $src || exit 1 tar xvfj $src
cd gtk+-* || exit 1 cd gtk+-*
./configure --prefix=$out --x-includes=$x11/include --x-libraries=$x11/lib || exit 1 ./configure --prefix=$out --x-includes=$x11/include --x-libraries=$x11/lib
make || exit 1 make
make install || exit 1 make install
echo "$x11 $glib $atk $pango" > $out/propagated-build-inputs || exit 1 mkdir $out/nix-support
echo "$x11 $glib $atk $pango" > $out/nix-support/propagated-build-inputs

View File

@ -1,12 +1,13 @@
#! /bin/sh #! /bin/sh -e
buildinputs="$pkgconfig $x11 $glib $xft" buildinputs="$pkgconfig $x11 $glib $xft"
. $stdenv/setup || exit 1 . $stdenv/setup
tar xvfj $src || exit 1 tar xvfj $src
cd pango-* || exit 1 cd pango-*
./configure --prefix=$out --x-includes=$x11/include --x-libraries=$x11/lib || exit 1 ./configure --prefix=$out --x-includes=$x11/include --x-libraries=$x11/lib
make || exit 1 make
make install || exit 1 make install
echo "$xft" > $out/propagated-build-inputs || exit 1 mkdir $out/nix-support
echo "$xft $glib" > $out/nix-support/propagated-build-inputs

View File

@ -1,16 +1,17 @@
#! /bin/sh #! /bin/sh -e
buildinputs="$zlib" buildinputs="$zlib"
. $stdenv/setup || exit 1 . $stdenv/setup
tar xvfj $src || exit 1 tar xvfj $src
cd libpng-* || exit 1 cd libpng-*
make -f scripts/makefile.linux || exit 1 make -f scripts/makefile.linux
mkdir $out || exit 1 mkdir $out
mkdir $out/bin || exit 1 mkdir $out/bin
mkdir $out/lib || exit 1 mkdir $out/lib
mkdir $out/include || exit 1 mkdir $out/include
make -f scripts/makefile.linux install prefix=$out || exit 1 make -f scripts/makefile.linux install prefix=$out
strip -S $out/lib/*.a || exit 1 strip -S $out/lib/*.a
echo "$zlib" > $out/propagated-build-inputs || exit 1 mkdir $out/nix-support
echo "$zlib" > $out/nix-support/propagated-build-inputs

View File

@ -1,16 +1,17 @@
#! /bin/sh #! /bin/sh -e
buildinputs="$zlib $libjpeg" buildinputs="$zlib $libjpeg"
. $stdenv/setup || exit 1 . $stdenv/setup
tar xvfz $src || exit 1 tar xvfz $src
cd tiff-* || exit 1 cd tiff-*
./configure --prefix=$out --with-DIR_MAN=$out/man \ ./configure --prefix=$out --with-DIR_MAN=$out/man \
--with-ZIP --with-JPEG \ --with-ZIP --with-JPEG \
--with-DIRS_LIBINC="$zlib/include $libjpeg/include" || exit 1 --with-DIRS_LIBINC="$zlib/include $libjpeg/include"
make || exit 1 make
mkdir $out || exit 1 mkdir $out
make install || exit 1 make install
strip -S $out/lib/*.a || exit 1 strip -S $out/lib/*.a
echo "$zlib $libjpeg" > $out/propagated-build-inputs || exit 1 mkdir $out/nix-support
echo "$zlib $libjpeg" > $out/nix-support/propagated-build-inputs

View File

@ -1,13 +1,14 @@
#! /bin/sh #! /bin/sh -e
buildinputs="$zlib" buildinputs="$zlib"
. $stdenv/setup || exit 1 . $stdenv/setup
tar xvfz $src || exit 1 tar xvfz $src
cd libxml2-* || exit 1 cd libxml2-*
./configure --prefix=$out || exit 1 ./configure --prefix=$out
make || exit 1 make
make install || exit 1 make install
strip -S $out/lib/*.a || exit 1 strip -S $out/lib/*.a
echo "$zlib" > $out/propagated-build-inputs || exit 1 mkdir $out/nix-support
echo "$zlib" > $out/nix-support/propagated-build-inputs

View File

@ -10,4 +10,5 @@ make
make install make install
strip -S $out/lib/*.a strip -S $out/lib/*.a
echo "$zlib" > $out/propagated-build-inputs mkdir $out/nix-support
echo "$zlib" > $out/nix-support/propagated-build-inputs

View File

@ -1,12 +1,13 @@
#! /bin/sh #! /bin/sh -e
buildinputs="$pkgconfig $fontconfig $x11" buildinputs="$pkgconfig $fontconfig $x11"
. $stdenv/setup || exit 1 . $stdenv/setup
tar xvfz $src || exit 1 tar xvfz $src
cd xft-* || exit 1 cd xft-*
./configure --prefix=$out --x-includes=$x11/include --x-libraries=$x11/lib || exit 1 ./configure --prefix=$out --x-includes=$x11/include --x-libraries=$x11/lib
make || exit 1 make
make install || exit 1 make install
echo "$fontconfig" > $out/propagated-build-inputs || exit 1 mkdir $out/nix-support
echo "$fontconfig" > $out/nix-support/propagated-build-inputs

View File

@ -1,12 +1,13 @@
#! /bin/sh #! /bin/sh -e
export buildinputs="$yacc $m4" export buildinputs="$yacc $m4"
. $stdenv/setup || exit 1 . $stdenv/setup
tar xvfj $src || exit 1 tar xvfj $src
cd flex-* || exit 1 cd flex-*
./configure --prefix=$out || exit 1 ./configure --prefix=$out
make || exit 1 make
make install || exit 1 make install
echo "$m4" > $out/propagated-build-inputs || exit 1 mkdir $out/nix-support
echo "$m4" > $out/nix-support/propagated-build-inputs

View File

@ -1,17 +1,18 @@
#! /bin/sh #! /bin/sh -e
buildinputs="$aterm $getopt $toolbuslib $ptsupport $sdfsupport $asfsupport $ascsupport $sglr" buildinputs="$aterm $getopt $toolbuslib $ptsupport $sdfsupport $asfsupport $ascsupport $sglr"
. $stdenv/setup || exit 1 . $stdenv/setup
tar zxf $src || exit 1 tar zxf $src
cd pgen-* || exit 1 cd pgen-*
./configure --prefix=$out --with-aterm=$aterm \ ./configure --prefix=$out --with-aterm=$aterm \
--with-toolbuslib=$toolbuslib \ --with-toolbuslib=$toolbuslib \
--with-pt-support=$ptsupport \ --with-pt-support=$ptsupport \
--with-sdf-support=$sdfsupport \ --with-sdf-support=$sdfsupport \
--with-asf-support=$asfsupport \ --with-asf-support=$asfsupport \
--with-asc-support=$asfsupport \ --with-asc-support=$asfsupport \
--with-sglr=$sglr || exit 1 --with-sglr=$sglr
make install || exit 1 make install
echo "$getopt" > $out/propagated-build-inputs || exit 1 mkdir $out/nix-support
echo "$getopt" > $out/nix-support/propagated-build-inputs

View File

@ -1,11 +1,12 @@
#! /bin/sh #! /bin/sh -e
buildinputs="$aterm $getopt" buildinputs="$aterm $getopt"
. $stdenv/setup || exit 1 . $stdenv/setup
tar zxf $src || exit 1 tar zxf $src
cd sdf2-bundle-* || exit 1 cd sdf2-bundle-*
./configure --prefix=$out --with-aterm=$aterm || exit 1 ./configure --prefix=$out --with-aterm=$aterm
make install || exit 1 make install
echo "$getopt" > $out/propagated-build-inputs || exit 1 mkdir $out/nix-support
echo "$getopt" > $out/nix-support/propagated-build-inputs