2006-10-19 19:03:13 +01: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-20 17:01:38 +01:00
|
|
|
["binutils" "gcc" "coreutils" "findutils" "gnused" "gnugrep" "gnutar" "gzip" "bzip2" "bash" "patch" "patchelf"];
|
2006-10-19 19:03:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
generator = pkgs.stdenv.mkDerivation {
|
|
|
|
name = "bootstrap-tools-generator";
|
|
|
|
builder = ./make-bootstrap-tools.sh;
|
2006-10-20 12:16:15 +01:00
|
|
|
|
2006-10-20 17:01:38 +01:00
|
|
|
inherit (pkgsDiet) coreutils findutils gnused gnugrep gnutar gzip bzip2 bash patch;
|
2006-10-20 11:13:07 +01:00
|
|
|
binutils = pkgsDiet.binutils;
|
2006-10-20 12:16:15 +01:00
|
|
|
|
|
|
|
gcc = import ../../development/compilers/gcc-static-4.1 {
|
|
|
|
inherit (pkgs) fetchurl stdenv;
|
|
|
|
profiledCompiler = false;
|
|
|
|
langCC = false;
|
|
|
|
};
|
|
|
|
|
2006-10-19 22:36:51 +01:00
|
|
|
curl = pkgsDiet.realCurl;
|
2006-10-19 19:03:13 +01:00
|
|
|
|
2006-10-20 12:50:08 +01:00
|
|
|
patchelf = import ../../development/tools/misc/patchelf/new.nix {
|
|
|
|
inherit (pkgs) fetchurl;
|
|
|
|
stdenv = pkgs.makeStaticBinaries pkgs.stdenv;
|
|
|
|
};
|
|
|
|
|
2006-10-20 13:50:45 +01:00
|
|
|
glibc = pkgs.glibc;
|
|
|
|
|
2006-10-19 19:03:13 +01: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
|