summary refs log tree commit diff
path: root/nixos/modules/system/boot/stage-1.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-09-27 16:36:16 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-09-29 13:06:43 +0200
commit97bfc2fac92d90c668ae1ec078356d0bd0a9ddb7 (patch)
treea4374e67bc2fda865d93133423cfb69c5018f95e /nixos/modules/system/boot/stage-1.nix
parent0cb16a6955ff6ef447a81caab02a8389b2d19dd4 (diff)
downloadnixpkgs-97bfc2fac92d90c668ae1ec078356d0bd0a9ddb7.tar
nixpkgs-97bfc2fac92d90c668ae1ec078356d0bd0a9ddb7.tar.gz
nixpkgs-97bfc2fac92d90c668ae1ec078356d0bd0a9ddb7.tar.bz2
nixpkgs-97bfc2fac92d90c668ae1ec078356d0bd0a9ddb7.tar.lz
nixpkgs-97bfc2fac92d90c668ae1ec078356d0bd0a9ddb7.tar.xz
nixpkgs-97bfc2fac92d90c668ae1ec078356d0bd0a9ddb7.tar.zst
nixpkgs-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/boot/stage-1.nix')
-rw-r--r--nixos/modules/system/boot/stage-1.nix2
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 8d02cd81e0e..61def24efd8 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
     }