mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
25 lines
746 B
Nix
25 lines
746 B
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)
|
||
|
["bash" "bzip2" "coreutils"];
|
||
|
};
|
||
|
|
||
|
generator = pkgs.stdenv.mkDerivation {
|
||
|
name = "bootstrap-tools-generator";
|
||
|
builder = ./make-bootstrap-tools.sh;
|
||
|
inherit (pkgsDiet) bash bzip2 coreutils;
|
||
|
|
||
|
# 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
|