Compare commits

..

53 Commits
0.3 ... 0.4

Author SHA1 Message Date
Eelco Dolstra
e6db9b1caa * Browser plugin for MPlayer.
svn path=/nixpkgs/trunk/; revision=498
2003-11-13 13:11:38 +00:00
Eelco Dolstra
5ce30ac868 * Added gqview.
svn path=/nixpkgs/trunk/; revision=497
2003-11-11 16:13:13 +00:00
Eelco Dolstra
ee09ff00ff * Added the ALSA library.
* Optional ALSA support in MPlayer.

svn path=/nixpkgs/trunk/; revision=496
2003-11-11 15:57:15 +00:00
Eelco Dolstra
e9ce152222 * MPlayer.
svn path=/nixpkgs/trunk/; revision=495
2003-11-11 15:01:07 +00:00
Eelco Dolstra
b1741cb2b1 * Converted Mozilla Firebird.
svn path=/nixpkgs/trunk/; revision=491
2003-11-07 11:18:47 +00:00
Eelco Dolstra
bd9a07f99c * Converted GTK 1 / Sylpheed, with optional support for gdk-pixbuf.
svn path=/nixpkgs/trunk/; revision=490
2003-11-06 16:28:57 +00:00
Eelco Dolstra
cc87e86386 * Converted more packages.
svn path=/nixpkgs/trunk/; revision=488
2003-11-06 15:24:19 +00:00
Eelco Dolstra
deec2fbb21 * Converted Xft.
svn path=/nixpkgs/trunk/; revision=485
2003-11-06 13:16:41 +00:00
Eelco Dolstra
f0f5b6297e * Converted more packages.
svn path=/nixpkgs/trunk/; revision=484
2003-11-06 12:43:25 +00:00
Eelco Dolstra
1c2cebf738 * Bug fix.
svn path=/nixpkgs/trunk/; revision=483
2003-11-06 12:43:11 +00:00
Eelco Dolstra
4d037af2de * Added assertions and defaults to the Subversion package.
* Some cleanups.

svn path=/nixpkgs/trunk/; revision=482
2003-11-05 16:28:26 +00:00
Eelco Dolstra
4cf6ec5ef5 * Converted some more packages.
* Subversion no longer needs libxml2 (just expat).

svn path=/nixpkgs/trunk/; revision=478
2003-11-05 12:17:48 +00:00
Eelco Dolstra
211f1cae14 * Added GNU wget to the stdenv.
svn path=/nixpkgs/trunk/; revision=477
2003-11-04 08:44:46 +00:00
Eelco Dolstra
acfb15751e * Forgot to add.
svn path=/nixpkgs/trunk/; revision=476
2003-11-04 08:36:52 +00:00
Eelco Dolstra
28f764f991 * Add bzip2 to the stdenv.
svn path=/nixpkgs/trunk/; revision=475
2003-11-04 08:36:32 +00:00
Eelco Dolstra
1fdba43460 * Updates paths in all-packages-generic.fix.
svn path=/nixpkgs/trunk/; revision=472
2003-11-03 18:21:30 +00:00
Eelco Dolstra
f24dabb6a3 * More refactoring.
svn path=/nixpkgs/trunk/; revision=471
2003-11-03 16:25:52 +00:00
Eelco Dolstra
a6c0074fcf * More refactoring.
svn path=/nixpkgs/trunk/; revision=470
2003-11-03 16:24:47 +00:00
Eelco Dolstra
646a101086 * Refactoring.
* README contains notes on hierarchy structure.

svn path=/nixpkgs/trunk/; revision=469
2003-11-03 16:20:16 +00:00
Eelco Dolstra
ff00ba7ffa * Subversion (dependencies missing).
svn path=/nixpkgs/trunk/; revision=468
2003-11-03 16:18:00 +00:00
Eelco Dolstra
9c9061eb67 * Populate starting from the paths in the environment variable `dirs'.
svn path=/nixpkgs/trunk/; revision=467
2003-11-03 14:52:29 +00:00
Eelco Dolstra
4f79dcdfba * Changed list syntax.
svn path=/nixpkgs/trunk/; revision=466
2003-11-03 11:59:54 +00:00
Eelco Dolstra
77d20ed799 * Updated to reflect the changes to the grammar.
svn path=/nixpkgs/trunk/; revision=464
2003-11-03 10:22:00 +00:00
Eelco Dolstra
2041469c69 * Set executable bit.
svn path=/nixpkgs/trunk/; revision=462
2003-11-02 23:15:03 +00:00
Eelco Dolstra
549a0a807f * Stdenv for Linux, i.e., with a Nix-built glibc.
svn path=/nixpkgs/trunk/; revision=461
2003-11-02 22:25:26 +00:00
Eelco Dolstra
3545617046 * Converted more packages.
* Moved fetchurl, aterm.

svn path=/nixpkgs/trunk/; revision=460
2003-11-02 18:14:24 +00:00
Eelco Dolstra
1894a8b86c * Converting packages. This is the minimal Nix stdenv for building
the ATerm library.

svn path=/nixpkgs/trunk/; revision=459
2003-11-02 17:42:19 +00:00
Eelco Dolstra
30f2bf8a85 * Get rid of this.
svn path=/nixpkgs/trunk/; revision=455
2003-11-01 22:51:49 +00:00
Eelco Dolstra
668eaa8960 * More prototyping.
svn path=/nixpkgs/trunk/; revision=449
2003-10-31 17:12:09 +00:00
Eelco Dolstra
33f773c97a * Improved prototype.
svn path=/nixpkgs/trunk/; revision=447
2003-10-31 13:12:20 +00:00
Eelco Dolstra
55161eff7c * New-style Fix expressions.
svn path=/nixpkgs/trunk/; revision=444
2003-10-30 17:01:49 +00:00
Eelco Dolstra
95bf9df10d * Upgraded to Mozilla Firebird 0.7.
svn path=/nixpkgs/trunk/; revision=426
2003-10-17 10:13:18 +00:00
Eelco Dolstra
fe9576d846 * Use ftp.cs.uu.nl mirror.
svn path=/nixpkgs/trunk/; revision=419
2003-10-15 12:42:52 +00:00
Eelco Dolstra
4853310bb8 * Upgraded docbook-xsl.
* Strip gcc's static libraries.

svn path=/nixpkgs/trunk/; revision=415
2003-10-14 12:12:46 +00:00
Eelco Dolstra
88629b5612 * Bug fix: openssl installs some directories unreadable.
svn path=/nixpkgs/trunk/; revision=408
2003-10-09 14:52:07 +00:00
Eelco Dolstra
60017b5191 * Upgraded a bunch of packages (in particular OpenSSL, which had a
security bug).

svn path=/nixpkgs/trunk/; revision=407
2003-10-09 13:24:24 +00:00
Eelco Dolstra
8f20737d52 * Firebird doesn't actually seem to need unzip.
svn path=/nixpkgs/trunk/; revision=406
2003-10-09 08:11:55 +00:00
Eelco Dolstra
2220a171c9 * Berkeley DB bindings for Perl.
svn path=/nixpkgs/trunk/; revision=405
2003-10-09 08:08:05 +00:00
Eelco Dolstra
7f97b73eef * Upgrade to Subversion 0.30.0.
svn path=/nixpkgs/trunk/; revision=404
2003-10-09 08:07:27 +00:00
Eelco Dolstra
915672f858 * Boehm garbage collector.
svn path=/nixpkgs/trunk/; revision=391
2003-09-12 10:20:34 +00:00
Eelco Dolstra
a9f88dae64 * User Mode Linux.
svn path=/nixpkgs/trunk/; revision=390
2003-09-12 10:20:12 +00:00
Eelco Dolstra
64c25128bc * The build of User Mode Linux 2.4.19 fails because the GCC people
thought that it was a good idea to remove support for multi-line
  string literals, which Linux uses.  Added an older GCC to build
  `legacy' software.

svn path=/nixpkgs/trunk/; revision=389
2003-09-12 10:19:47 +00:00
Eelco Dolstra
34dfe18660 * GNU Patch.
svn path=/nixpkgs/trunk/; revision=388
2003-09-11 20:17:17 +00:00
Eelco Dolstra
714a65d9d4 * Upgraded to Subversion 0.29.0.
svn path=/nixpkgs/trunk/; revision=387
2003-09-11 12:25:32 +00:00
Eelco Dolstra
443b81595a * Fixed stdenv-native.
svn path=/nixpkgs/trunk/; revision=386
2003-09-11 12:24:19 +00:00
Eelco Dolstra
ff7acae84b * Added gqview to system
* Enabled build of dotty/lefty in graphviz.

svn path=/nixpkgs/trunk/; revision=383
2003-09-03 15:07:50 +00:00
Eelco Dolstra
35e9ca4fa9 * Added gqview, a nice image viewer.
svn path=/nixpkgs/trunk/; revision=380
2003-09-03 10:56:30 +00:00
Eelco Dolstra
10a53b57d8 * Let graphviz use freetype.
svn path=/nixpkgs/trunk/; revision=379
2003-09-03 10:55:57 +00:00
Eelco Dolstra
d883e86e1c * Added graphviz.
svn path=/nixpkgs/trunk/; revision=378
2003-09-03 10:32:30 +00:00
Eelco Dolstra
15b39d40af * Link in expat if we are *not* building an Apache module.
svn path=/nixpkgs/trunk/; revision=377
2003-09-01 14:53:07 +00:00
Eelco Dolstra
eef0deb633 * Let GUI applications/libraries link against the nixified XFree86.
This makes the system package fully nixified in the sense that

    for i in $(nix -qn $(fix system/system-template-everything.fix))/bin/*; \
    do echo $i; ldd $i; done

  shows that the programs in the system package only link against libraries in
  the Nix store.

  (Some builders still use header files from /usr/X11/include, though.)

svn path=/nixpkgs/trunk/; revision=376
2003-08-29 14:43:45 +00:00
Eelco Dolstra
d60e11c4e2 * Quick fix to allow fontconfig to find client-side fonts.
svn path=/nixpkgs/trunk/; revision=375
2003-08-29 13:18:56 +00:00
Eelco Dolstra
01f6b1026c * Added XFree86 (client-side libraries only).
svn path=/nixpkgs/trunk/; revision=373
2003-08-29 12:23:00 +00:00
191 changed files with 3455 additions and 82 deletions

97
pkgs-ng/README Normal file
View File

@@ -0,0 +1,97 @@
* Classification scheme for packages
- many packages fall under several categories; what matters is the
*primary* purpose of a package. For example, the libxml2 package
builds both a library and some tools; but it's a library foremost,
so it goes under ./development/libraries.
- when in doubt, refactor.
IF it's used to support SOFTWARE DEVELOPMENT:
IF it's a LIBRARY used by other packages:
IF it's directly related to GTK:
./development/libraries/gtk+
ELSE
./development/libraries
(e.g., libxml2)
ELSE IF it's a COMPILER:
./development/compilers
(e.g., gcc)
ELSE IF it's an INTERPRETER:
./development/interpreters
ELSE IF it's a development TOOL (or set of):
IF it's a PARSER GENERATOR (incl. lexers):
./development/tools/parsing
(e.g., bison, flex)
ELSE IF it's a BUILD MANAGER:
./development/tools/build-managers
(e.g., gnumake
ELSE
./development/tools/misc
(e.g., binutils)
ELSE
./development/misc
ELSE IF it's a TOOL (or set of):
# a tool is a relatively *small* program, esp. one intented to be
# used non-interactively
IF it's for NETWORKING:
./tools/networking
(e.g., wget)
ELSE IF it's for TEXT PROCESSING:
./tools/text
(e.g., diffutils)
ELSE IF it's a SYSTEM utility, i.e., something related or essential
to the operation of a system:
./tools/system
(e.g., init)
ELSE IF it's an ARCHIVER (which may include a compression function):
./tools/archivers
(e.g., zip, tar)
ELSE IF it's a COMPRESSION program:
./tools/compression
(e.g., gzip, bzip2)
ELSE
./tools/misc
ELSE IF it's a SHELL:
./shells
ELSE IF it's a SERVER:
IF it's a HTTP server:
./servers/http
(e.g., apache)
IF it's a X11 server:
./servers/x11
(e.g., xfree86)
ELSE
./servers/misc
ELSE IF it's a DESKTOP ENVIRONMENT (incl. WINDOW MANAGERS):
./desktops
(e.g., kde, gnome, fvwm)
ELSE IF it's an APPLICATION:
# a (typically large) program with a distinct user interface,
# primarily used interactively
IF it's a VERSION MANAGEMENT system:
./applications/version-management
ELSE IF it's for VIDEO playback/etc:
./applications/video
ELSE IF it's for GRAPHICS viewing/editing/etc:
./applications/graphics
ELSE IF it's for NETWORKING:
IF it's a MAILREADER:
./applications/networking/mailreaders
IF it's a NEWSREADER:
./applications/networking/newsreaders
ELSE
./applications/networking/misc
ELSE
./applications/misc

View File

@@ -0,0 +1,10 @@
#! /bin/sh
buildinputs="$pkgconfig $gtk $libpng"
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd gqview-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1

View File

@@ -0,0 +1,22 @@
{stdenv, fetchurl, pkgconfig, gtk, libpng}:
assert !isNull pkgconfig && !isNull gtk && !isNull png;
# Note that we cannot just copy gtk's png attribute, since gtk might
# not be linked against png.
assert libpng == gtk.libpng;
derivation {
name = "gqview-1.3.5";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://heanet.dl.sourceforge.net/sourceforge/gqview/gqview-1.3.5.tar.gz;
md5 = "c44687bdd636ea6e5133fb936abf880a";
};
stdenv = stdenv;
pkgconfig = pkgconfig;
gtk = gtk;
libpng = libpng;
}

View File

@@ -0,0 +1,30 @@
#! /bin/sh
buildinputs="$pkgconfig $gtk $perl $zip $libIDL"
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd mozilla || exit 1
cat > .mozconfig <<EOF
export MOZ_PHOENIX=1
mk_add_options MOZ_PHOENIX=1
ac_add_options --enable-crypto
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-mailnews
ac_add_options --disable-composer
ac_add_options --enable-optimize=-O2
ac_add_options --disable-ldap
ac_add_options --disable-mailnews
ac_add_options --enable-extensions=default,-inspector,-irc,-venkman,-content-packs,-help
ac_add_options --enable-xft
ac_add_options --enable-swg
ac_add_options --enable-strip
ac_add_options --enable-default-toolkit=gtk2
EOF
echo "ac_add_options --prefix=$out" >> .mozconfig
./configure || exit 1
make -f client.mk build || exit 1
make install || exit 1

View File

@@ -0,0 +1,25 @@
{ stdenv, fetchurl, pkgconfig, gtk, perl, zip, libIDL
}:
assert !isNull pkgconfig && !isNull gtk && !isNull perl
&& !isNull zip && !isNull libIDL;
assert libIDL.glib == gtk.glib;
derivation {
name = "MozillaFirebird-0.7";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.mozilla.org/pub/mozilla.org/firebird/releases/0.7/MozillaFirebird-source-0.7.tar.gz;
md5 = "35112566a3dca5bdf363972056afc462";
};
stdenv = stdenv;
pkgconfig = pkgconfig;
gtk = gtk;
perl = perl;
zip = zip;
libIDL = libIDL;
}

View File

@@ -0,0 +1,20 @@
#! /bin/sh
buildinputs="$gtk $gdkpixbuf $openssl"
. $stdenv/setup || exit 1
if test $sslSupport; then
extraflags="--enable-ssl $extraflags"
fi
if test $imageSupport; then
extraflags="--enable-gdk-pixbuf $extraflags"
else
extraflags="--disable-gdk-pixbuf --disable-imlibtest $extraflags"
fi
tar xvfj $src || exit 1
cd sylpheed-* || exit 1
./configure --prefix=$out $extraflags || exit 1
make || exit 1
make install || exit 1

View File

@@ -0,0 +1,27 @@
{ sslSupport ? true
, imageSupport ? true
, stdenv, fetchurl, gtk, openssl ? null, gdkpixbuf ? null
}:
assert !isNull gtk;
assert sslSupport -> !isNull openssl;
assert imageSupport -> !isNull gdkpixbuf;
derivation {
name = "sylpheed-0.9.7";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://sylpheed.good-day.net/sylpheed/sylpheed-0.9.7.tar.bz2;
md5 = "399deb5abd52396d26d6475689a5ec3f";
};
sslSupport = sslSupport;
imageSupport = imageSupport;
stdenv = stdenv;
gtk = gtk;
openssl = if sslSupport then openssl else null;
gdkpixbuf = if imageSupport then gdkpixbuf else null;
}

View File

@@ -0,0 +1,10 @@
#! /bin/sh
buildinputs="$pkgconfig $gtk $gtkspell $gnet $libxml2 $perl"
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
cd pan-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1

View File

@@ -0,0 +1,29 @@
{ spellChecking ? true
, stdenv, fetchurl, pkgconfig, gtk, gtkspell ? null, gnet, libxml2, perl
}:
assert !isNull pkgconfig && !isNull gtk && !isNull gnet
&& !isNull libxml2 && !isNull perl;
assert spellChecking -> !isNull gtkspell && gtk == gtkspell.gtk;
assert gtk.glib == gnet.glib;
derivation {
name = "pan-0.14.2";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://pan.rebelbase.com/download/releases/0.14.2/SOURCE/pan-0.14.2.tar.bz2;
md5 = "ed3188e7059bb6d6c209ee5d46ac1852";
};
spellChecking = spellChecking;
stdenv = stdenv;
pkgconfig = pkgconfig;
gtk = gtk;
gtkspell = if spellChecking then gtkspell else null;
gnet = gnet;
libxml2 = libxml2;
perl = perl;
}

View File

@@ -0,0 +1,35 @@
#! /bin/sh
buildinputs="$openssl $db4 $httpd $swig $expat"
. $stdenv/setup || exit 1
if test $localServer; then
extraflags="--with-berkeley-db=$db4 $extraflags"
fi
if test $sslSupport; then
extraflags="--with-ssl --with-libs=$openssl $extraflags"
fi
if test $httpServer; then
extraflags="--with-apxs=$httpd/bin/apxs --with-apr=$httpd --with-apr-util=$httpd $extraflags"
extramakeflags="APACHE_LIBEXECDIR=$out/modules $extramakeflags"
fi
if test $swigBindings; then
extraflags="--with-swig=$swig $extraflags"
fi
echo "extra flags: $extraflags"
tar xvfz $src || exit 1
cd subversion-* || exit 1
./configure --prefix=$out $extraflags \
--without-gdbm --disable-static || exit 1
make $extramakeflags || exit 1
make install $extramakeflags || exit 1
if test $swigBindings; then
make swig-py || exit 1
make install-swig-py || exit 1
fi

View File

@@ -0,0 +1,36 @@
{ localServer ? false
, httpServer ? false
, sslSupport ? false
, swigBindings ? false
, stdenv, fetchurl
, openssl ? null, httpd ? null, db4 ? null, expat, swig ? null
}:
assert !isNull expat;
assert localServer -> !isNull db4;
assert httpServer -> !isNull httpd && httpd.expat == expat;
assert sslSupport -> !isNull openssl && (httpServer -> httpd.openssl == openssl);
assert swigBindings -> !isNull swig;
derivation {
name = "subversion-0.32.1";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://svn.collab.net/tarballs/subversion-0.32.1.tar.gz;
md5 = "b06717a8ef50db4b5c4d380af00bd901";
};
localServer = localServer;
httpServer = httpServer;
sslSupport = sslSupport;
swigBindings = swigBindings;
stdenv = stdenv;
openssl = if sslSupport then openssl else null;
httpd = if httpServer then httpd else null;
expat = expat;
db4 = if localServer then db4 else null;
swig = if swigBindings then swig else null;
}

View File

@@ -0,0 +1,19 @@
#! /bin/sh
buildinputs="$freetype $x11 $alsa"
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
tar xvfj $fonts || exit 1
cd MPlayer-* || exit 1
./configure --prefix=$out --with-win32libdir=$win32codecs \
--with-x11incdir=$x11/include --with-x11libdir=$x11/lib \
--with-reallibdir=$win32codecs \
--disable-sdl --disable-esd --disable-xanim --disable-cdparanoia --disable-directfb \
--disable-lirc --disable-svga --disable-libdv \
--disable-vorbis --disable-png --disable-jpeg --disable-gif \
--enable-runtime-cpudetection \
|| exit 1
make || exit 1
make install || exit 1
cp -p ../font-arial-iso-8859-1/font-arial-18-iso-8859-1/* $out/share/mplayer/font || exit 1

View File

@@ -0,0 +1,31 @@
{ alsaSupport ? false
, stdenv, fetchurl, x11, freetype, alsa ? null}:
assert !isNull x11 && !isNull freetype;
assert alsaSupport -> !isNull alsa;
derivation {
name = "MPlayer-1.0pre2";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-1.0pre2.tar.bz2;
md5 = "a60c179468f85e83e3f9e1922e81ad64";
};
fonts = fetchurl {
url = http://www2.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2;
md5 = "1ecd31d17b51f16332b1fcc7da36b312";
};
alsaSupport = alsaSupport;
stdenv = stdenv;
x11 = x11;
freetype = freetype;
alsa = if alsaSupport then alsa else null;
win32codecs = (import ./win32codecs) {
stdenv = stdenv;
fetchurl = fetchurl;
};
}

View File

@@ -0,0 +1,9 @@
#! /bin/sh
. $stdenv/setup || exit 1
mkdir $out || exit 1
cd $out || exit 1
tar xvfj $src || exit 1
mv extralite/* . || exit 1
rmdir extralite || exit 1

View File

@@ -0,0 +1,10 @@
{stdenv, fetchurl}: derivation {
name = "win32codecs-1";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://www2.mplayerhq.hu/MPlayer/releases/codecs/extralite.tar.bz2;
md5 = "4748ecae87f71e8bda9cb2e2a9bd30b4";
};
stdenv = stdenv;
}

View File

@@ -0,0 +1,11 @@
#! /bin/sh
buildinputs="$x11"
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd mplayer* || exit 1
./configure || exit 1
make || exit 1
mkdir -p $out/lib/mozilla/plugins || exit 1
cp mplayerplug-in.so $out/lib/mozilla/plugins || exit 1

View File

@@ -0,0 +1,17 @@
{stdenv, fetchurl, x11}:
assert !isNull x11;
derivation {
name = "mplayerplug-in-1.0pre2";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://heanet.dl.sourceforge.net/sourceforge/mplayerplug-in/mplayerplug-in-1.0pre2.tar.gz;
md5 = "1a6eb243989c143984bb1aac63b5282e";
};
stdenv = stdenv;
x11 = x11;
}

View File

@@ -0,0 +1,21 @@
#! /bin/sh
. $stdenv/setup
echo "downloading $url into $out..."
#prefetch=@prefix@/store/nix-prefetch-url-$md5
prefetch=/nix/store/nix-prefetch-url-$md5
if test -f "$prefetch"; then
echo "using prefetched $prefetch";
mv $prefetch $out || exit 1
else
wget --passive-ftp "$url" -O "$out" || exit 1
fi
#actual=$(@bindir@/nix-hash --flat $out)
actual=$(/nix/bin/nix-hash --flat $out)
if test "$actual" != "$md5"; then
echo "hash is $actual, expected $md5"
exit 1
fi

View File

@@ -0,0 +1,9 @@
{stdenv}: {url, md5}: derivation {
name = baseNameOf (toString url);
system = stdenv.system;
builder = ./builder.sh;
stdenv = stdenv;
url = url;
md5 = md5;
id = md5;
}

View File

@@ -0,0 +1,56 @@
#! /bin/sh
buildinputs="$binutils"
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
if test "$noSysDirs" == "1"; then
# Disable the standard include directories.
cd gcc-* || exit 1
cat >> ./gcc/cppdefault.h <<EOF
#undef LOCAL_INCLUDE_DIR
#undef SYSTEM_INCLUDE_DIR
#undef STANDARD_INCLUDE_DIR
EOF
cd .. || exit 1
fi
# Configure.
mkdir build || exit 1
cd build || exit 1
../gcc-*/configure --prefix=$out --enable-languages=c,c++ || exit 1
if test "$noSysDirs" == "1"; then
# Patch some of the makefiles to force linking against our own glibc.
extraflags="-Wl,-s $NIX_CFLAGS_COMPILE $NIX_CFLAGS_LINK"
for i in $NIX_LDFLAGS; do
extraflags="$extraflags -Wl,$i"
done
mf=Makefile
sed \
-e "s^FLAGS_FOR_TARGET =\(.*\)^FLAGS_FOR_TARGET = \1 $extraflags^" \
< $mf > $mf.tmp || exit 1
mv $mf.tmp $mf
mf=gcc/Makefile
sed \
-e "s^X_CFLAGS =\(.*\)^X_CFLAGS = \1 $extraflags^" \
< $mf > $mf.tmp || exit 1
mv $mf.tmp $mf
# Patch gcc/Makefile to prevent fixinc.sh from "fixing" system header files
# from /usr/include.
mf=gcc/Makefile
sed \
-e "s^NATIVE_SYSTEM_HEADER_DIR =\(.*\)^NATIVE_SYSTEM_HEADER_DIR = /fixinc-disabled^" \
< $mf > $mf.tmp || exit 1
mv $mf.tmp $mf
fi
# Build and install.
make bootstrap || exit 1
make install || exit 1
find $out -name "*.a" -exec strip -S {} \; || exit 1

View File

@@ -0,0 +1,12 @@
{stdenv, fetchurl, binutils}: derivation {
name = "gcc-3.3.2";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.nluug.nl/pub/gnu/gcc/gcc-3.3.2/gcc-3.3.2.tar.bz2;
md5 = "65999f654102f5438ac8562d13a6eced";
};
stdenv = stdenv;
binutils = binutils;
noSysDirs = stdenv.noSysDirs;
}

View File

@@ -0,0 +1,26 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd perl-* || exit 1
# Perl's Configure messes with PATH. We can't have that, so we patch it.
# Yeah, this is an ugly hack.
cat Configure | \
grep -v '^paths=' | \
grep -v '^locincpth=' | \
grep -v '^xlibpth=' | \
grep -v '^glibpth=' | \
grep -v '^loclibpth=' | \
grep -v '^locincpth=' | \
cat > Configure.tmp || exit 1
mv Configure.tmp Configure || exit 1
chmod +x Configure || exit 1
./Configure -de -Dcc=gcc -Dprefix=$out -Uinstallusrbinperl \
-Dlocincpth="$NIX_LIBC_INCLUDES" \
-Dloclibpth="$NIX_LIBC_LIBS" \
|| exit 1
make || exit 1
make install || exit 1

View File

@@ -0,0 +1,10 @@
{stdenv, fetchurl}: derivation {
name = "perl-5.8.0";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.cs.uu.nl/mirror/CPAN/src/5.0/perl-5.8.1.tar.gz;
md5 = "87cf132f1fbf23e780f0b218046438a6";
};
stdenv = stdenv;
}

View File

@@ -0,0 +1,10 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd aterm-* || exit 1
./configure --prefix=$out --with-gcc || exit 1
make || exit 1
make install || exit 1
strip -S $out/lib/*.a || exit 1

View File

@@ -0,0 +1,10 @@
{stdenv, fetchurl}: derivation {
name = "aterm-2.0";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://www.cwi.nl/projects/MetaEnv/aterm/aterm-2.0.tar.gz;
md5 = "853474e4bcf4a85f7d38a0676b36bded";
};
stdenv = stdenv;
}

View File

@@ -0,0 +1,10 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd db-*/build_unix || exit 1
../dist/configure --prefix=$out --enable-cxx --enable-compat185 || exit 1
make || exit 1
make install || exit 1
rm -rf $out/doc || exit 1

View File

@@ -0,0 +1,10 @@
{stdenv, fetchurl}: derivation {
name = "db4-4.0.14";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://www.sleepycat.com/update/snapshot/db-4.0.14.tar.gz;
md5 = "12262c64fcd64b772e7cffad8e4d0ebc";
};
stdenv = stdenv;
}

View File

@@ -0,0 +1,10 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd expat-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1
strip -S $out/lib/*.a || exit 1

View File

@@ -0,0 +1,10 @@
{stdenv, fetchurl}: derivation {
name = "expat-1.95.7";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://heanet.dl.sourceforge.net/sourceforge/expat/expat-1.95.7.tar.gz;
md5 = "2ff59c2a5cbdd21a285c5f343e214fa9";
};
stdenv = stdenv;
}

View File

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

View File

@@ -0,0 +1,21 @@
{stdenv, fetchurl, x11, freetype, expat, ed}:
assert !isNull x11 && x11.buildClientLibs;
assert !isNull freetype;
assert !isNull expat;
assert !isNull ed;
derivation {
name = "fontconfig-2.2.90";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://pdx.freedesktop.org/software/fontconfig/releases/fontconfig-2.2.90.tar.gz;
md5 = "5cb87476743be1bbf1674ed72a76ae6a";
};
stdenv = stdenv;
x11 = x11;
freetype = freetype;
expat = expat;
ed = ed;
}

View File

@@ -0,0 +1,10 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
cd freetype-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1
strip -S $out/lib/*.a || exit 1

View File

@@ -0,0 +1,10 @@
{stdenv, fetchurl}: derivation {
name = "freetype-2.1.5";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://heanet.dl.sourceforge.net/sourceforge/freetype/freetype-2.1.5.tar.bz2;
md5 = "54537b518b84d04190a1eccd393a29df";
};
stdenv = stdenv;
}

View File

@@ -0,0 +1,9 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd gettext-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1

View File

@@ -0,0 +1,10 @@
{stdenv, fetchurl}: derivation {
name = "gettext-0.12.1";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.nluug.nl/pub/gnu/gettext/gettext-0.12.1.tar.gz;
md5 = "5d4bddd300072315e668247e5b7d5bdb";
};
stdenv = stdenv;
}

View File

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

View File

@@ -0,0 +1,21 @@
{stdenv, fetchurl, kernelHeaders}: derivation {
name = "glibc-2.3.2";
system = stdenv.system;
builder = ./builder.sh;
glibcSrc = fetchurl {
url = ftp://ftp.nl.net/pub/gnu/glibc/glibc-2.3.2.tar.bz2;
md5 = "ede969aad568f48083e413384f20753c";
};
linuxthreadsSrc = fetchurl {
url = ftp://ftp.nl.net/pub/gnu/glibc/glibc-linuxthreads-2.3.2.tar.bz2;
md5 = "894b8969cfbdf787c73e139782167607";
};
# This is a patch to make glibc compile under GCC 3.3. Presumably
# later releases of glibc won't need this.
vaargsPatch = ./glibc-2.3.2-sscanf-1.patch;
stdenv = stdenv;
kernelHeaders = kernelHeaders;
}

View File

@@ -0,0 +1,68 @@
Submitted By: David Shust (www.shustring.com)
Date: 2003-08-15
Initial Package Version: 2.3.2
Origin: glibc CVS changes performed by Roland McGrath
Description: patches stdio-common/sscanf.c, libio/{swprintf.c, swscanf.c}
diff -Naur glibc-2.3.2/libio/swprintf.c glibc-2.3.2-new/libio/swprintf.c
--- glibc-2.3.2/libio/swprintf.c 2001-07-07 19:21:03.000000000 +0000
+++ glibc-2.3.2-new/libio/swprintf.c 2003-08-15 19:36:42.000000000 +0000
@@ -1,4 +1,5 @@
-/* Copyright (C) 1991,1995,1997,1998,1999,2000 Free Software Foundation, Inc.
+/* Copyright (C) 1991,1995,1997,1998,1999,2000,2003
+ Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -22,10 +23,7 @@
/* Write formatted output into S, according to the format string FORMAT. */
/* VARARGS3 */
int
-swprintf (s, n, format)
- wchar_t *s;
- size_t n;
- const wchar_t *format;
+swprintf (wchar_t *s, size_t n, const wchar_t *format, ...)
{
va_list arg;
int done;
diff -Naur glibc-2.3.2/libio/swscanf.c glibc-2.3.2-new/libio/swscanf.c
--- glibc-2.3.2/libio/swscanf.c 2001-07-07 19:21:03.000000000 +0000
+++ glibc-2.3.2-new/libio/swscanf.c 2003-08-15 19:36:42.000000000 +0000
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1991,1995,1996,1998,1999,2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -22,9 +22,7 @@
/* Read formatted input from S, according to the format string FORMAT. */
/* VARARGS2 */
int
-swscanf (s, format)
- const wchar_t *s;
- const wchar_t *format;
+swscanf (const wchar_t *s, const wchar_t *format, ...)
{
va_list arg;
int done;
diff -Naur glibc-2.3.2/stdio-common/sscanf.c glibc-2.3.2-new/stdio-common/sscanf.c
--- glibc-2.3.2/stdio-common/sscanf.c 2002-08-10 18:09:08.000000000 +0000
+++ glibc-2.3.2-new/stdio-common/sscanf.c 2003-08-15 19:36:24.000000000 +0000
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,95,96,98,2002 Free Software Foundation, Inc.
+/* Copyright (C) 1991,1995,1996,1998,2002,2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -27,9 +27,7 @@
/* Read formatted input from S, according to the format string FORMAT. */
/* VARARGS2 */
int
-sscanf (s, format)
- const char *s;
- const char *format;
+sscanf (const char *s, const char *format, ...)
{
va_list arg;
int done;

View File

@@ -0,0 +1,10 @@
#! /bin/sh
buildinputs="$pkgconfig $glib"
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd gnet-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1

View File

@@ -0,0 +1,16 @@
{stdenv, fetchurl, pkgconfig, glib}:
assert !isNull pkgconfig && !isNull glib;
derivation {
name = "gnet-2.0.4";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://www.gnetlibrary.org/src/gnet-2.0.4.tar.gz;
md5 = "b43e728391143214e2cfd0b835b6fd2a";
};
stdenv = stdenv;
pkgconfig = pkgconfig;
glib = glib;
}

View File

@@ -0,0 +1,10 @@
#! /bin/sh
buildinputs="$gtk $libtiff $libjpeg $libpng"
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
cd gdk-pixbuf-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1

View File

@@ -0,0 +1,21 @@
{stdenv, fetchurl, gtk, libtiff, libjpeg, libpng}:
assert !isNull gtk && !isNull libtiff
&& !isNull libjpeg && !isNull libpng;
derivation {
name = "gdk-pixbuf-0.22.0";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/0.22/gdk-pixbuf-0.22.0.tar.bz2;
md5 = "05fcb68ceaa338614ab650c775efc2f2";
};
stdenv = stdenv;
gtk = gtk;
libtiff = libtiff;
libjpeg = libjpeg;
libpng = libpng;
}

View File

@@ -0,0 +1,9 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd glib-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1

View File

@@ -0,0 +1,10 @@
{stdenv, fetchurl}: derivation {
name = "glib-1.2.10";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.gtk.org/pub/gtk/v1.2/glib-1.2.10.tar.gz;
md5 = "6fe30dad87c77b91b632def29dd69ef9";
};
stdenv = stdenv;
}

View File

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

View File

@@ -0,0 +1,19 @@
{stdenv, fetchurl, x11, glib}:
assert !isNull x11 && !isNull glib;
assert x11.buildClientLibs;
derivation {
name = "gtk+-1.2.10";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.gtk.org/pub/gtk/v1.2/gtk+-1.2.10.tar.gz;
md5 = "4d5cb2fc7fb7830e4af9747a36bfce20";
};
stdenv = stdenv;
x11 = x11;
glib = glib;
}

View File

@@ -0,0 +1,10 @@
#! /bin/sh
buildinputs="$pkgconfig $perl $glib"
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
cd atk-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1

View File

@@ -0,0 +1,17 @@
{stdenv, fetchurl, pkgconfig, glib, perl}:
assert !isNull pkgconfig && !isNull glib && !isNull perl;
derivation {
name = "atk-1.2.4";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.gtk.org/pub/gtk/v2.2/atk-1.2.4.tar.bz2;
md5 = "2d6d50df31abe0e8892b5d3e7676a02d";
};
stdenv = stdenv;
pkgconfig = pkgconfig;
glib = glib;
perl = perl;
}

View File

@@ -0,0 +1,10 @@
#! /bin/sh
buildinputs="$pkgconfig $gettext $perl"
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
cd glib-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1

View File

@@ -0,0 +1,17 @@
{stdenv, fetchurl, pkgconfig, gettext, perl}:
assert !isNull pkgconfig && !isNull gettext && !isNull perl;
derivation {
name = "glib-2.2.3";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.gtk.org/pub/gtk/v2.2/glib-2.2.3.tar.bz2;
md5 = "aa214a10d873b68ddd67cd9de2ccae55";
};
stdenv = stdenv;
pkgconfig = pkgconfig;
gettext = gettext;
perl = perl;
}

View File

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

View File

@@ -0,0 +1,30 @@
{ stdenv, fetchurl, pkgconfig, x11, glib, atk
, pango, perl, libtiff, libjpeg, libpng}:
assert !isNull pkgconfig && !isNull x11 && !isNull glib && !isNull atk
&& !isNull pango && !isNull perl && !isNull perl && !isNull libtiff
&& !isNull libjpeg && !isNull libpng;
assert x11.buildClientLibs;
assert glib == atk.glib;
assert glib == pango.glib;
assert x11 == pango.x11;
derivation {
name = "gtk+-2.2.4";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.gtk.org/pub/gtk/v2.2/gtk+-2.2.4.tar.bz2;
md5 = "605332199533e73bc6eec481fb4f1671";
};
stdenv = stdenv;
pkgconfig = pkgconfig;
x11 = x11;
glib = glib;
atk = atk;
pango = pango;
perl = perl;
libtiff = libtiff;
libjpeg = libjpeg;
libpng = libpng;
}

View File

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

View File

@@ -0,0 +1,20 @@
{stdenv, fetchurl, pkgconfig, x11, glib, xft}:
assert !isNull pkgconfig && !isNull x11 && !isNull glib && !isNull xft;
assert x11.buildClientLibs;
assert xft.x11 == x11;
derivation {
name = "pango-1.2.5";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.gtk.org/pub/gtk/v2.2/pango-1.2.5.tar.bz2;
md5 = "df00fe3e71cd297010f24f439b6c8ee6";
};
stdenv = stdenv;
pkgconfig = pkgconfig;
x11 = x11;
glib = glib;
xft = xft;
}

View File

@@ -0,0 +1,11 @@
#! /bin/sh
buildinputs="$pkgconfig $glib $lex $yacc"
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
cd libIDL-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1
strip -S $out/lib/*.a || exit 1

View File

@@ -0,0 +1,18 @@
{stdenv, fetchurl, pkgconfig, glib, lex, yacc}:
assert !isNull pkgconfig && !isNull gtk && !isNull lex && !isNull yacc;
derivation {
name = "libIDL-0.8.2";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.gnome.org/pub/gnome/sources/libIDL/0.8/libIDL-0.8.2.tar.bz2;
md5 = "a75d2dbf3a3c66b567047c94245f8b82";
};
stdenv = stdenv;
pkgconfig = pkgconfig;
glib = glib;
lex = lex;
yacc = yacc;
}

View File

@@ -0,0 +1,15 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd jpeg-* || exit 1
./configure --prefix=$out --enable-shared || exit 1
make || exit 1
mkdir $out || exit 1
mkdir $out/bin || exit 1
mkdir $out/lib || exit 1
mkdir $out/include || exit 1
mkdir $out/man || exit 1
mkdir $out/man/man1 || exit 1
make install || exit 1

View File

@@ -0,0 +1,10 @@
{stdenv, fetchurl}: derivation {
name = "libjpeg-6b";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://www.ijg.org/files/jpegsrc.v6b.tar.gz;
md5 = "dbd5f3b47ed13132f04c685d608a7547";
};
stdenv = stdenv;
}

View File

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

View File

@@ -0,0 +1,15 @@
{stdenv, fetchurl, zlib}:
assert !isNull zlib;
derivation {
name = "libpng-1.2.5";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://heanet.dl.sourceforge.net/sourceforge/png-mng/libpng-1.2.5.tar.bz2;
md5 = "3fc28af730f12ace49b14568de4ad934";
};
stdenv = stdenv;
zlib = zlib;
}

View File

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

View File

@@ -0,0 +1,16 @@
{stdenv, fetchurl, zlib, libjpeg}:
assert !isNull zlib && !isNull libjpeg;
derivation {
name = "libtiff-3.5.7";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.remotesensing.org/pub/libtiff/tiff-v3.5.7.tar.gz;
md5 = "82243b5ae9b7c9e492aeebc501680990";
};
stdenv = stdenv;
zlib = zlib;
libjpeg = libjpeg;
}

View File

@@ -0,0 +1,11 @@
#! /bin/sh
buildinputs="$zlib"
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd libxml2-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1
strip -S $out/lib/*.a || exit 1

View File

@@ -0,0 +1,15 @@
{stdenv, fetchurl, zlib}:
assert !isNull zlib;
derivation {
name = "libxml2-2.6.2";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://rpmfind.net/pub/libxml/libxml2-2.6.2.tar.gz;
md5 = "56e7f74d3d44cc16790ad08624faef64";
};
stdenv = stdenv;
zlib = zlib;
}

View File

@@ -0,0 +1,16 @@
#! /bin/sh
. $stdenv/setup || exit 1
export PATH=$perl/bin:$PATH
tar xvfz $src || exit 1
cd openssl-* || exit 1
./config --prefix=$out shared || exit 1
make || exit 1
mkdir $out || exit 1
make install || exit 1
# Bug fix: openssl does a `chmod 644' on the pkgconfig directory.
chmod 755 $out/lib/pkgconfig || exit 1
echo $envpkgs > $out/envpkgs || exit 1

View File

@@ -0,0 +1,11 @@
{stdenv, fetchurl, perl}: derivation {
name = "openssl-0.9.7c";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://www.openssl.org/source/openssl-0.9.7c.tar.gz;
md5 = "c54fb36218adaaaba01ef733cd88c8ec";
};
stdenv = stdenv;
perl = perl;
}

View File

@@ -0,0 +1,9 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
cd pcre-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1

View File

@@ -0,0 +1,10 @@
{stdenv, fetchurl}: derivation {
name = "pcre-4.3";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-4.3.tar.bz2;
md5 = "7bc7d5b590a41e6f9ede30f272002a02";
};
stdenv = stdenv;
}

View File

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

View File

@@ -0,0 +1,18 @@
{stdenv, fetchurl, pkgconfig, x11, fontconfig}:
assert !isNull pkgconfig && !isNull x11 && !isNull fontconfig;
assert fontconfig.x11 == x11;
derivation {
name = "xft-2.1.2";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://pdx.freedesktop.org/software/fontconfig/releases/xft-2.1.2.tar.gz;
md5 = "defb7e801d4938b8b15a426ae57e2f3f";
};
stdenv = stdenv;
pkgconfig = pkgconfig;
x11 = x11;
fontconfig = fontconfig;
}

View File

@@ -0,0 +1,10 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd zlib-* || exit 1
./configure --prefix=$out --shared || exit 1
make || exit 1
mkdir $out || exit 1
make install || exit 1

View File

@@ -0,0 +1,10 @@
{stdenv, fetchurl}: derivation {
name = "zlib-1.1.4";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://www.gzip.org/zlib/zlib-1.1.4.tar.gz;
md5 = "abc405d0bdd3ee22782d7aa20e440f08";
};
stdenv = stdenv;
}

View File

@@ -0,0 +1,9 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
cd make-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1

View File

@@ -0,0 +1,10 @@
{stdenv, fetchurl}: derivation {
name = "gnumake-3.80";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.nluug.nl/pub/gnu/make/make-3.80.tar.bz2;
md5 = "0bbd1df101bc0294d440471e50feca71";
};
stdenv = stdenv;
}

View File

@@ -0,0 +1,17 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
cd binutils-* || exit 1
# Clear the default library search path.
if test "$noSysDirs" == "1"; then
echo 'NATIVE_LIB_DIRS=' >> ld/configure.tgt || exit 1
fi
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1
strip -S $out/lib/*.a || exit 1

View File

@@ -0,0 +1,11 @@
{stdenv, fetchurl}: derivation {
name = "binutils-2.14";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.nluug.nl/pub/gnu/binutils/binutils-2.14.tar.bz2;
md5 = "2da8def15d28af3ec6af0982709ae90a";
};
stdenv = stdenv;
noSysDirs = stdenv.noSysDirs;
}

View File

@@ -0,0 +1,9 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd m4-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1

View File

@@ -0,0 +1,11 @@
{stdenv, fetchurl}:
derivation {
name = "gnum4-1.4";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.nluug.nl/pub/gnu/m4/m4-1.4.tar.gz;
md5 = "9eb2dd07740b2d2f3c7adb3e8d299bda";
};
stdenv = stdenv;
}

View File

@@ -0,0 +1,10 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd pkgconfig-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
mkdir $out || exit 1
make install || exit 1

View File

@@ -0,0 +1,10 @@
{stdenv, fetchurl}: derivation {
name = "pkgconfig-0.15.0";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://www.freedesktop.org/software/pkgconfig/releases/pkgconfig-0.15.0.tar.gz;
md5 = "a7e4f60a6657dbc434334deb594cc242";
};
stdenv = stdenv;
}

View File

@@ -0,0 +1,10 @@
#! /bin/sh
buildinputs="$m4"
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
cd bison-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1

View File

@@ -0,0 +1,13 @@
{stdenv, fetchurl, m4}:
assert !isNull m4;
derivation {
name = "bison-1.875";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.nluug.nl/pub/gnu/bison/bison-1.875.tar.bz2;
md5 = "b7f8027b249ebd4dd0cc948943a71af0";
};
stdenv = stdenv;
m4 = m4;
}

View File

@@ -0,0 +1,10 @@
#! /bin/sh
export buildinputs="$yacc"
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd flex-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1

View File

@@ -0,0 +1,13 @@
{stdenv, fetchurl, yacc}:
assert !isNull yacc;
derivation {
name = "flex-2.5.4a";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.nluug.nl/pub/gnu/flex/flex-2.5.4a.tar.gz;
md5 = "bd8753d0b22e1f4ec87a553a73021adf";
};
stdenv = stdenv;
yacc = yacc;
}

View File

@@ -0,0 +1,9 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
cd alsa-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1

View File

@@ -0,0 +1,10 @@
{stdenv, fetchurl}: derivation {
name = "alsa-lib-0.9.8";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.alsa-project.org/pub/lib/alsa-lib-0.9.8.tar.bz2;
md5 = "c9f163fb0623de1b92bf287712641f6e";
};
stdenv = stdenv;
}

View File

@@ -0,0 +1,12 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
cd linux-* || exit 1
make include/linux/version.h || exit 1
mkdir $out || exit 1
mkdir $out/include || exit 1
cp -prvd include/linux include/asm-i386 $out/include || exit 1
cd $out/include || exit 1
ln -s asm-i386 asm || exit 1

View File

@@ -0,0 +1,11 @@
{stdenv, fetchurl}: derivation {
# !!! check that this is a i386
name = "linux-headers-2.4.22-i386";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.nl.kernel.org/pub/linux/kernel/v2.4/linux-2.4.22.tar.bz2;
md5 = "75dc85149b06ac9432106b8941eb9f7b";
};
stdenv = stdenv;
}

View File

@@ -0,0 +1,23 @@
#! /bin/sh
buildinputs="$openssl $db4 $expat $perl"
. $stdenv/setup || exit 1
if test $db4Support; then
extraflags="--with-berkeley-db=$db4 $extraflags"
fi
if test $sslSupport; then
extraflags="--enable-ssl --with-ssl=$openssl $extraflags"
fi
tar xvfz $src || exit 1
cd httpd-* || exit 1
./configure --prefix=$out \
--with-expat=$expat --enable-mods-shared=all --without-gdbm \
--enable-threads --with-devrandom=/dev/urandom \
$extraflags || exit 1
make || exit 1
make install || exit 1
strip -S $out/lib/*.a || exit 1
rm -rf $out/manual || exit 1

View File

@@ -0,0 +1,19 @@
{ stdenv, fetchurl, openssl, db4, expat, perl
, sslSupport, db4Support
}:
derivation {
name = "apache-httpd-2.0.48";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.cs.uu.nl/mirror/apache.org/dist/httpd/httpd-2.0.48.tar.gz;
md5 = "466c63bb71b710d20a5c353df8c1a19c";
};
stdenv = stdenv;
perl = perl;
openssl = if sslSupport then openssl else "";
db4 = if db4Support then db4 else "";
expat = expat;
}

View File

@@ -0,0 +1,15 @@
#! /bin/sh
export buildinputs="$bison $flex"
. $stdenv/setup || exit 1
tar xvfz $src1 || exit 1
tar xvfz $src2 || exit 1
tar xvfz $src3 || exit 1
cd xc || exit 1
sed "s^@OUT@^$out^" < $hostdef > config/cf/host.def
make World || exit 1
make install || exit 1
# !!! Hack to get fontconfig to work.
ln -s /usr/X11R6/lib/X11/fonts $out/lib/X11/fonts

View File

@@ -0,0 +1,34 @@
{ buildServer ? true
, buildClientLibs ? true
, stdenv, fetchurl, bison, flex}:
assert !buildServer; # we don't support this currently
assert buildClientLibs; # we don't support *not* doing this currently
assert !isNull bison && !isNull flex;
derivation {
name = "xfree86-4.3";
system = stdenv.system;
builder = ./builder.sh;
hostdef = ./host.def;
src1 = fetchurl {
url = ftp://gnu.kookel.org/pub/XFree86/4.3.0/source/X430src-1.tgz;
md5 = "4f241a4f867363f40efa2b00dca292af";
};
src2 = fetchurl {
url = ftp://gnu.kookel.org/pub/XFree86/4.3.0/source/X430src-2.tgz;
md5 = "844c2ee908d21dbf8911fd13115bf8b4";
};
src3 = fetchurl {
url = ftp://gnu.kookel.org/pub/XFree86/4.3.0/source/X430src-3.tgz;
md5 = "b82a0443e1b7bf860e4343e6b6766cb6";
};
buildServer = buildServer;
buildClientLibs = buildClientLibs;
stdenv = stdenv;
bison = bison;
flex = flex;
}

View File

@@ -0,0 +1,30 @@
#define BuildServer NO
#define BuildFontServer NO
#define BuildSpeedo NO
#define BuildType1 NO
#define BuildCID NO
#define BuildFreeType NO
#define BuildXTrueType NO
#define BuildFonts NO
#define BuildXftLibrary NO
#define BuildXft1Library NO
#define BuildClients NO
#define BuildDocs NO
#define BuildLibraries YES
#define BuildGLXLibrary NO
#define BuildOSMesaLib NO
#define BuildOSMesaLib NO
#define BuildXvMCExt NO
#define BuildXvMCLibrary NO
#define XF86Server NO
#define XnestServer NO
#define XVirtualFramebufferServer NO
#define XprtServer NO
#define XF86CardDrivers
#define XInputDrivers
#define ProjectRoot @OUT@
#define NothingOutsideProjectRoot YES
#define EtcX11Directory ProjectRoot/etc
#define UseSeparateConfDir NO

10
pkgs-ng/shells/bash/builder.sh Executable file
View File

@@ -0,0 +1,10 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd bash-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1
(cd $out/bin; ln -s bash sh) || exit 1

View File

@@ -0,0 +1,10 @@
{stdenv, fetchurl}: derivation {
name = "bash-2.05b";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.nluug.nl/pub/gnu/bash/bash-2.05b.tar.gz;
md5 = "5238251b4926d778dfe162f6ce729733";
};
stdenv = stdenv;
}

View File

@@ -0,0 +1,41 @@
#! /bin/sh
# Set up the initial path.
for i in $initialPath; do
PATH=$PATH:$i/bin
done
# Make output directories.
mkdir $out || exit 1
mkdir $out/bin || exit 1
# Create the setup script.
sed \
-e "s^@OUT@^$out^g" \
-e "s^@PREHOOK@^$prehook^g" \
-e "s^@POSTHOOK@^$posthook^g" \
-e "s^@INITIALPATH@^$initialPath^g" \
-e "s^@PARAM1@^$param1^g" \
-e "s^@PARAM2@^$param2^g" \
-e "s^@PARAM3@^$param3^g" \
-e "s^@PARAM4@^$param4^g" \
-e "s^@PARAM5@^$param5^g" \
< $setup > $out/setup || exit 1
# Create the gcc wrapper.
sed \
-e 's^@GCC\@^$NIX_CC^g' \
< $gccwrapper > $out/bin/gcc || exit 1
chmod +x $out/bin/gcc || exit 1
ln -s gcc $out/bin/cc || exit 1
# Create the g++ wrapper.
sed \
-e 's^@GCC\@^$NIX_CXX^g' \
< $gccwrapper > $out/bin/g++ || exit 1
chmod +x $out/bin/g++ || exit 1
ln -s g++ $out/bin/c++ || exit 1
# Create the ld wrapper.
cp $ldwrapper $out/bin/ld || exit 1
chmod +x $out/bin/ld || exit 1

View File

@@ -0,0 +1,23 @@
{system, name, noSysDirs, prehook, posthook, initialPath,
param1, param2, param3, param4, param5}:
derivation {
name = name;
system = system;
builder = ./builder.sh;
noSysDirs = noSysDirs;
setup = ./setup.sh;
gccwrapper = ./gcc-wrapper.sh;
ldwrapper = ./ld-wrapper.sh;
prehook = prehook;
posthook = posthook;
initialPath = initialPath;
# TODO: make this more elegant.
param1 = param1;
param2 = param2;
param3 = param3;
param4 = param4;
param5 = param5;
}

View File

@@ -0,0 +1,42 @@
#! /bin/sh
IFS=
justcompile=0
for i in $@; do
if test "$i" == "-c"; then
justcompile=1
elif test "$i" == "-S"; then
justcompile=1
elif test "$i" == "-E"; then
justcompile=1
elif test "$i" == "-E"; then
justcompile=1
elif test "$i" == "-M"; then
justcompile=1
elif test "$i" == "-MM"; then
justcompile=1
fi
done
IFS=" "
extra=($NIX_CFLAGS_COMPILE)
if test "$justcompile" != "1"; then
extra=(${extra[@]} $NIX_CFLAGS_LINK)
for i in $NIX_LDFLAGS; do
extra=(${extra[@]} "-Wl,$i")
done
if test "$NIX_STRIP_DEBUG" == "1"; then
extra=(${extra[@]} -g0 -Wl,-s)
fi
fi
if test "$NIX_DEBUG" == "1"; then
echo "extra flags to @GCC@:" >&2
for i in ${extra[@]}; do
echo " $i" >&2
done
fi
IFS=
exec @GCC@ $@ ${extra[@]}

View File

@@ -0,0 +1,17 @@
#! /bin/sh
IFS=" "
extra=($NIX_CFLAGS_LINK $NIX_LDFLAGS)
if test "$NIX_STRIP_DEBUG" == "1"; then
extra=(${extra[@]} -s)
fi
if test "$NIX_DEBUG" == "1"; then
echo "extra flags to @LD@:" >&2
for i in ${extra[@]}; do
echo " $i" >&2
done
fi
IFS=
exec $NIX_LD $@ ${extra[@]}

View File

@@ -0,0 +1,67 @@
# Set up the initial path.
for i in @INITIALPATH@; do
PATH=$PATH:$i/bin
done
echo $PATH
# Execute the pre-hook.
param1=@PARAM1@
param2=@PARAM2@
param3=@PARAM3@
param4=@PARAM4@
param5=@PARAM5@
. @PREHOOK@
# Add the directory containing the GCC wrappers to the PATH.
export PATH=@OUT@/bin:$PATH
# Recursively add all buildinputs to the relevant environment variables.
addtoenv()
{
pkgs="$buildinputs $1"
if test -d $1/bin; then
export PATH=$1/bin:$PATH
fi
if test -d $1/lib; then
export NIX_CFLAGS_LINK="-L$1/lib $NIX_CFLAGS_LINK"
export NIX_LDFLAGS="-rpath $1/lib $NIX_LDFLAGS"
fi
if test -d $1/lib/pkgconfig; then
export PKG_CONFIG_PATH=$1/lib/pkgconfig:$PKG_CONFIG_PATH
fi
if test -d $1/include; then
export NIX_CFLAGS_COMPILE="-I$1/include $NIX_CFLAGS_COMPILE"
fi
if test -f $1/propagated-build-inputs; then
for i in $(cat $1/propagated-build-inputs); do
addtoenv $i
done
fi
}
oldbuildinputs=$buildinputs
buildinputs=
for i in $oldbuildinputs; do
addtoenv $i
done
# Add the output as an rpath.
if test "$NIX_NO_SELF_RPATH" != "1"; then
export NIX_LDFLAGS="-rpath $out/lib $NIX_LDFLAGS"
fi
# Strip debug information by default.
export NIX_STRIP_DEBUG=1
# Execute the post-hook.
. @POSTHOOK@
if test "$NIX_DEBUG" == "1"; then
echo "Setup: PATH=$PATH"
fi

Some files were not shown because too many files have changed in this diff Show More