mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
3d2e573eff
on trivial patterns, so use an older sed instead (4.1.2). See http://linuxfromscratch.org/pipermail/hlfs-dev/2005-September/002447.html. svn path=/nixpkgs/trunk/; revision=6792
43 lines
1.3 KiB
Nix
43 lines
1.3 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" "gnused" "gnugrep" "gnutar" "gzip" "bzip2" "bash" "patch" "patchelf"];
|
|
};
|
|
|
|
generator = pkgs.stdenv.mkDerivation {
|
|
name = "bootstrap-tools-generator";
|
|
builder = ./make-bootstrap-tools.sh;
|
|
|
|
inherit (pkgsDiet) coreutils findutils gnugrep gnutar gzip bzip2 bash patch;
|
|
gnused = pkgsDiet.gnused412; # 4.1.5 gives "Memory exhausted" errors
|
|
binutils = pkgsDiet.binutils;
|
|
|
|
gcc = import ../../development/compilers/gcc-static-4.1 {
|
|
inherit (pkgs) fetchurl stdenv;
|
|
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
|