* Converted more packages.

svn path=/nixpkgs/trunk/; revision=484
This commit is contained in:
Eelco Dolstra 2003-11-06 12:43:25 +00:00
parent 1c2cebf738
commit f0f5b6297e
11 changed files with 169 additions and 0 deletions

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
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,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,31 @@
{ 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";
};
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

View File

@ -85,6 +85,23 @@
stdenv = stdenv;
};
gnum4 = (import ../development/tools/misc/gnum4) {
fetchurl = fetchurl;
stdenv = stdenv;
};
bison = (import ../development/tools/parsing/bison) {
fetchurl = fetchurl;
stdenv = stdenv;
m4 = gnum4;
};
flex = (import ../development/tools/parsing/flex) {
fetchurl = fetchurl;
stdenv = stdenv;
yacc = bison;
};
gcc = (import ../development/compilers/gcc) {
fetchurl = fetchurl;
stdenv = stdenv;
@ -142,6 +159,15 @@
expat = expat;
};
xfree86 = (import ../servers/x11/xfree86) {
buildServer = false;
buildClientLibs = true;
fetchurl = fetchurl;
stdenv = stdenv;
flex = flex;
bison = bison;
};
### OS-SPECIFIC

View File

@ -13,6 +13,7 @@
selectedPkgs = [
pkgs.aterm
pkgs.subversion
pkgs.xfree86
];
# Create a user environment.