2006-10-19 20:03:13 +02:00
|
|
|
let
|
|
|
|
|
|
|
|
pkgs = import ../../top-level/all-packages.nix {};
|
|
|
|
|
|
|
|
pkgsDiet = import ../../top-level/all-packages.nix {
|
|
|
|
# Have to do removeAttrs to prevent all-packages from copying
|
|
|
|
# stdenv-linux's dependencies, rather than building new ones with
|
|
|
|
# dietlibc.
|
|
|
|
bootStdenv = removeAttrs (pkgs.useDietLibC pkgs.stdenv)
|
2006-10-21 00:23:36 +02:00
|
|
|
[ "binutils" "gcc" "coreutils" "findutils" "diffutils" "gnused" "gnugrep"
|
2006-10-20 22:57:31 +02:00
|
|
|
"gawk" "gnutar" "gzip" "bzip2" "gnumake" "bash" "patch" "patchelf"
|
|
|
|
];
|
2006-10-19 20:03:13 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
generator = pkgs.stdenv.mkDerivation {
|
|
|
|
name = "bootstrap-tools-generator";
|
|
|
|
builder = ./make-bootstrap-tools.sh;
|
2006-10-20 13:16:15 +02:00
|
|
|
|
2006-10-20 22:57:31 +02:00
|
|
|
inherit (pkgsDiet)
|
2006-10-21 00:23:36 +02:00
|
|
|
coreutils findutils diffutils gnugrep gawk
|
2006-10-20 22:57:31 +02:00
|
|
|
gnutar gzip bzip2 gnumake bash patch;
|
2006-10-20 22:05:26 +02:00
|
|
|
gnused = pkgsDiet.gnused412; # 4.1.5 gives "Memory exhausted" errors
|
2006-10-23 13:43:36 +02:00
|
|
|
binutils = pkgsDiet.binutils217;
|
2006-10-20 13:16:15 +02:00
|
|
|
|
|
|
|
gcc = import ../../development/compilers/gcc-static-4.1 {
|
2006-10-23 20:56:43 +02:00
|
|
|
inherit (pkgs) fetchurl stdenv glibc;
|
2006-10-20 13:16:15 +02:00
|
|
|
profiledCompiler = false;
|
|
|
|
langCC = false;
|
|
|
|
};
|
|
|
|
|
2006-10-19 23:36:51 +02:00
|
|
|
curl = pkgsDiet.realCurl;
|
2006-10-19 20:03:13 +02:00
|
|
|
|
2006-10-20 13:50:08 +02:00
|
|
|
patchelf = import ../../development/tools/misc/patchelf/new.nix {
|
|
|
|
inherit (pkgs) fetchurl;
|
|
|
|
stdenv = pkgs.makeStaticBinaries pkgs.stdenv;
|
|
|
|
};
|
|
|
|
|
2006-10-20 14:50:45 +02:00
|
|
|
glibc = pkgs.glibc;
|
|
|
|
|
2006-10-19 20:03:13 +02:00
|
|
|
# The result should not contain any references (store paths) so
|
|
|
|
# that we can safely copy them out of the store and to other
|
|
|
|
# locations in the store.
|
|
|
|
allowedReferences = [];
|
|
|
|
};
|
|
|
|
|
|
|
|
in generator
|