diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-09-27 16:36:16 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-09-29 13:06:43 +0200 |
commit | 97bfc2fac92d90c668ae1ec078356d0bd0a9ddb7 (patch) | |
tree | a4374e67bc2fda865d93133423cfb69c5018f95e /nixos/modules/system | |
parent | 0cb16a6955ff6ef447a81caab02a8389b2d19dd4 (diff) | |
download | nixlib-97bfc2fac92d90c668ae1ec078356d0bd0a9ddb7.tar nixlib-97bfc2fac92d90c668ae1ec078356d0bd0a9ddb7.tar.gz nixlib-97bfc2fac92d90c668ae1ec078356d0bd0a9ddb7.tar.bz2 nixlib-97bfc2fac92d90c668ae1ec078356d0bd0a9ddb7.tar.lz nixlib-97bfc2fac92d90c668ae1ec078356d0bd0a9ddb7.tar.xz nixlib-97bfc2fac92d90c668ae1ec078356d0bd0a9ddb7.tar.zst nixlib-97bfc2fac92d90c668ae1ec078356d0bd0a9ddb7.zip |
runCommand: Use stdenvNoCC
This ensures that most "trivial" derivations used to build NixOS configurations no longer depend on GCC. For commands that do invoke gcc, there is runCommandCC.
Diffstat (limited to 'nixos/modules/system')
-rw-r--r-- | nixos/modules/system/boot/stage-1.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix index 8d02cd81e0e1..61def24efd88 100644 --- a/nixos/modules/system/boot/stage-1.nix +++ b/nixos/modules/system/boot/stage-1.nix @@ -34,7 +34,7 @@ let # copy what we need. Instead of using statically linked binaries, # we just copy what we need from Glibc and use patchelf to make it # work. - extraUtils = pkgs.runCommand "extra-utils" + extraUtils = pkgs.runCommandCC "extra-utils" { buildInputs = [pkgs.nukeReferences]; allowedReferences = [ "out" ]; # prevent accidents like glibc being included in the initrd } |