nixpkgs/pkgs/stdenv/linux/make-bootstrap-tools.nix
Eelco Dolstra b495d3f65e * Trying to get gcc-static to build on x86_64. Still doesn't work though.
svn path=/nixpkgs/trunk/; revision=6809
2006-10-23 18:56:43 +00:00

46 lines
1.4 KiB
Nix

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)
[ "binutils" "gcc" "coreutils" "findutils" "diffutils" "gnused" "gnugrep"
"gawk" "gnutar" "gzip" "bzip2" "gnumake" "bash" "patch" "patchelf"
];
};
generator = pkgs.stdenv.mkDerivation {
name = "bootstrap-tools-generator";
builder = ./make-bootstrap-tools.sh;
inherit (pkgsDiet)
coreutils findutils diffutils gnugrep gawk
gnutar gzip bzip2 gnumake bash patch;
gnused = pkgsDiet.gnused412; # 4.1.5 gives "Memory exhausted" errors
binutils = pkgsDiet.binutils217;
gcc = import ../../development/compilers/gcc-static-4.1 {
inherit (pkgs) fetchurl stdenv glibc;
profiledCompiler = false;
langCC = false;
};
curl = pkgsDiet.realCurl;
patchelf = import ../../development/tools/misc/patchelf/new.nix {
inherit (pkgs) fetchurl;
stdenv = pkgs.makeStaticBinaries pkgs.stdenv;
};
glibc = pkgs.glibc;
# 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