mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
* Converted more packages.
svn path=/nixpkgs/trunk/; revision=484
This commit is contained in:
parent
1c2cebf738
commit
f0f5b6297e
9
pkgs-ng/development/tools/misc/gnum4/builder.sh
Executable file
9
pkgs-ng/development/tools/misc/gnum4/builder.sh
Executable 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
|
11
pkgs-ng/development/tools/misc/gnum4/default.fix
Normal file
11
pkgs-ng/development/tools/misc/gnum4/default.fix
Normal 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;
|
||||
}
|
10
pkgs-ng/development/tools/parsing/bison/builder.sh
Executable file
10
pkgs-ng/development/tools/parsing/bison/builder.sh
Executable 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
|
13
pkgs-ng/development/tools/parsing/bison/default.fix
Normal file
13
pkgs-ng/development/tools/parsing/bison/default.fix
Normal 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;
|
||||
}
|
10
pkgs-ng/development/tools/parsing/flex/builder.sh
Executable file
10
pkgs-ng/development/tools/parsing/flex/builder.sh
Executable 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
|
13
pkgs-ng/development/tools/parsing/flex/default.fix
Normal file
13
pkgs-ng/development/tools/parsing/flex/default.fix
Normal 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;
|
||||
}
|
15
pkgs-ng/servers/x11/xfree86/builder.sh
Executable file
15
pkgs-ng/servers/x11/xfree86/builder.sh
Executable 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
|
31
pkgs-ng/servers/x11/xfree86/default.fix
Normal file
31
pkgs-ng/servers/x11/xfree86/default.fix
Normal 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;
|
||||
}
|
30
pkgs-ng/servers/x11/xfree86/host.def
Normal file
30
pkgs-ng/servers/x11/xfree86/host.def
Normal 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
|
|
@ -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
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
selectedPkgs = [
|
||||
pkgs.aterm
|
||||
pkgs.subversion
|
||||
pkgs.xfree86
|
||||
];
|
||||
|
||||
# Create a user environment.
|
||||
|
|
Loading…
Reference in a new issue