2004-11-04 13:19:32 +01:00
|
|
|
rec {
|
2004-10-19 17:16:14 +02:00
|
|
|
|
2004-11-04 13:19:32 +01:00
|
|
|
curl = derivation {
|
|
|
|
name = "curl";
|
|
|
|
builder = ./bash-static/bash;
|
|
|
|
tar = ./gnutar-static/bin/tar;
|
|
|
|
gunzip = ./gzip-static/bin/gunzip;
|
2004-11-29 15:40:28 +01:00
|
|
|
curl = ./curl-static/curl-7.12.2-static.tar.gz;
|
2004-11-04 13:19:32 +01:00
|
|
|
cp = ./tools/cp;
|
|
|
|
system = "i686-linux";
|
|
|
|
args = [ ./scripts/curl-unpack ];
|
|
|
|
};
|
|
|
|
|
2004-12-06 19:50:27 +01:00
|
|
|
download = {url, pkgname, postprocess ? null, extra ? null, extra2 ? null, extra3 ? null, extra4? null, patchelf ? null}: derivation {
|
2004-11-04 13:19:32 +01:00
|
|
|
name = pkgname;
|
|
|
|
builder = ./bash-static/bash;
|
|
|
|
tar = ./gnutar-static/bin/tar;
|
|
|
|
gunzip = ./gzip-static/bin/gunzip;
|
|
|
|
inherit curl url;
|
|
|
|
cp = ./tools/cp;
|
|
|
|
system = "i686-linux";
|
|
|
|
args = [ ./scripts/download-script ];
|
2004-12-06 19:50:27 +01:00
|
|
|
inherit postprocess extra extra2 extra3 extra4 patchelf;
|
2004-11-04 13:19:32 +01:00
|
|
|
};
|
|
|
|
|
2004-12-01 15:42:38 +01:00
|
|
|
/*
|
|
|
|
|
2004-11-04 13:19:32 +01:00
|
|
|
glibc = derivation {
|
|
|
|
name = "glibc";
|
2004-11-29 15:40:28 +01:00
|
|
|
builder = ./bash-static/bash;
|
|
|
|
tar = ./gnutar-static/bin/tar;
|
2004-11-04 13:19:32 +01:00
|
|
|
glibc_src = ./glibc-2.3.3.tar.bz2;
|
|
|
|
glibc_threads_src = ./glibc-linuxthreads-2.3.3.tar.bz2;
|
|
|
|
patch1 = ./no-unit-at-a-time.patch;
|
|
|
|
patch2 = ./fixup.patch;
|
|
|
|
inherit bzip2 gnumake binutils gcc coreutils gnused diffutils gnugrep gawk linuxHeaders patch;
|
2004-11-29 15:40:28 +01:00
|
|
|
gzip_path = ./gzip-static/bin;
|
2004-11-04 13:19:32 +01:00
|
|
|
system = "i686-linux";
|
2004-11-29 15:40:28 +01:00
|
|
|
args = [ ./scripts/glibc-build ];
|
2004-11-04 13:19:32 +01:00
|
|
|
};
|
|
|
|
|
2004-12-01 15:42:38 +01:00
|
|
|
*/
|
|
|
|
|
2004-11-04 13:19:32 +01:00
|
|
|
coreutils = download {url = http://losser.st-lab.cs.uu.nl/~armijn/.nix/coreutils-5.0-static.tar.gz; pkgname = "coreutils";};
|
|
|
|
|
|
|
|
bzip2 = download {url = http://losser.st-lab.cs.uu.nl/~armijn/.nix/bzip2-1.0.2-static.tar.gz; pkgname = "bzip2";};
|
|
|
|
|
|
|
|
gnumake = download {url = http://losser.st-lab.cs.uu.nl/~armijn/.nix/make-3.80-static.tar.gz; pkgname = "gnumake";};
|
|
|
|
|
|
|
|
binutils = download {url = http://losser.st-lab.cs.uu.nl/~armijn/.nix/binutils-2.15-static.tar.gz; pkgname = "binutils";};
|
|
|
|
|
|
|
|
diffutils = download {url = http://losser.st-lab.cs.uu.nl/~armijn/.nix/diffutils-2.8.1-static.tar.gz; pkgname = "diffutils";};
|
|
|
|
|
|
|
|
gnused = download {url = http://losser.st-lab.cs.uu.nl/~armijn/.nix/sed-4.0.7-static.tar.gz; pkgname = "gnused";};
|
|
|
|
|
|
|
|
gnugrep = download {url = http://losser.st-lab.cs.uu.nl/~armijn/.nix/grep-2.5.1-static.tar.gz; pkgname = "gnugrep";};
|
|
|
|
|
|
|
|
gcc = (download {url = http://losser.st-lab.cs.uu.nl/~armijn/.nix/gcc-3.4.2-static.tar.gz; pkgname = "gcc";}) //
|
|
|
|
{ langC = true; langCC = false; langF77 = false; };
|
|
|
|
|
|
|
|
gawk = download {url = http://losser.st-lab.cs.uu.nl/~armijn/.nix/gawk-3.1.3-static.tar.gz; pkgname = "gawk";};
|
2004-10-19 17:16:14 +02:00
|
|
|
|
2004-11-04 13:19:32 +01:00
|
|
|
patch = download {url = http://losser.st-lab.cs.uu.nl/~armijn/.nix/patch-2.5.4-static.tar.gz; pkgname = "patch";};
|
|
|
|
|
|
|
|
findutils = download {url = http://losser.st-lab.cs.uu.nl/~armijn/.nix/findutils-4.1.20-static.tar.gz; pkgname = "findutils";};
|
|
|
|
|
|
|
|
linuxHeaders = download {url = http://losser.st-lab.cs.uu.nl/~armijn/.nix/linux-headers-2.4.25-i386.tar.gz; pkgname = "linux-headers";};
|
|
|
|
|
|
|
|
glibc = download {
|
|
|
|
url = http://losser.st-lab.cs.uu.nl/~armijn/.nix/glibc-2.3.3-static-2.tar.gz;
|
|
|
|
pkgname = "glibc";
|
2004-12-01 15:42:38 +01:00
|
|
|
patchelf = ./patchelf-static/patchelf;
|
2004-12-01 17:09:21 +01:00
|
|
|
extra3 = findutils;
|
2004-12-06 19:50:27 +01:00
|
|
|
extra4 = gnused;
|
2004-11-04 13:19:32 +01:00
|
|
|
postprocess = ./scripts/add-symlink.sh;
|
|
|
|
extra = linuxHeaders;
|
|
|
|
extra2 = coreutils;
|
|
|
|
};
|
|
|
|
|
|
|
|
stdenvInitial = let {
|
|
|
|
|
|
|
|
body = derivation {
|
|
|
|
name = "stdenv-linux-static-initial";
|
|
|
|
system = "i686-linux";
|
|
|
|
builder = ./bash-static/bash;
|
|
|
|
args = ./scripts/builder-stdenv-initial.sh;
|
|
|
|
inherit coreutils gnused;
|
|
|
|
} // {
|
|
|
|
mkDerivation = attrs: derivation (attrs // {
|
|
|
|
builder = ./bash-static/bash;
|
|
|
|
args = ["-e" attrs.builder];
|
|
|
|
stdenv = body;
|
|
|
|
system = body.system;
|
|
|
|
});
|
|
|
|
|
|
|
|
shell = ./bash-static/bash;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2004-12-15 17:07:21 +01:00
|
|
|
stdenvBootFun = {glibc, gcc, binutils}: (import ../generic) {
|
2004-11-04 13:19:32 +01:00
|
|
|
name = "stdenv-linux-static-boot";
|
|
|
|
stdenv = stdenvInitial;
|
|
|
|
shell = ./bash-static/bash;
|
|
|
|
gcc = (import ../../build-support/gcc-wrapper) {
|
|
|
|
stdenv = stdenvInitial;
|
|
|
|
nativeTools = false;
|
|
|
|
nativeGlibc = false;
|
|
|
|
inherit gcc glibc binutils;
|
|
|
|
};
|
|
|
|
initialPath = [
|
|
|
|
coreutils
|
|
|
|
./gnutar-static
|
|
|
|
./gzip-static
|
|
|
|
bzip2
|
|
|
|
gnused
|
|
|
|
gnugrep
|
|
|
|
gawk
|
|
|
|
gnumake
|
|
|
|
findutils
|
|
|
|
diffutils
|
|
|
|
patch
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2004-12-15 17:07:21 +01:00
|
|
|
/*
|
2004-11-04 13:19:32 +01:00
|
|
|
stdenvBoot = stdenvBootFun {inherit glibc;};
|
|
|
|
|
|
|
|
fetchurl = (import ../../build-support/fetchurl) {
|
|
|
|
stdenv = stdenvBoot;
|
|
|
|
inherit curl;
|
|
|
|
};
|
2004-10-19 17:16:14 +02:00
|
|
|
|
2004-11-04 13:19:32 +01:00
|
|
|
aterm = (import ../../development/libraries/aterm) {
|
|
|
|
stdenv = stdenvBoot;
|
|
|
|
inherit fetchurl;
|
2004-10-19 17:16:14 +02:00
|
|
|
};
|
|
|
|
|
2004-11-04 13:19:32 +01:00
|
|
|
body = [coreutils bzip2 gnumake binutils diffutils gcc glibc gnused gnugrep diffutils gawk];
|
2004-12-15 17:07:21 +01:00
|
|
|
*/
|
2004-10-19 17:16:14 +02:00
|
|
|
|
|
|
|
}
|