From c95e1ffb8c048cef62687d75df6e9b9653e1f57c Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Wed, 13 Jul 2022 16:22:22 +0000 Subject: Use stdenvNoCC where possible This will save having to download gcc and binutils just to change a config file in a VM. Signed-off-by: Alyssa Ross --- host/initramfs/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'host/initramfs') diff --git a/host/initramfs/default.nix b/host/initramfs/default.nix index d03467d..a4f7330 100644 --- a/host/initramfs/default.nix +++ b/host/initramfs/default.nix @@ -6,8 +6,8 @@ }: pkgs.callPackage ( -{ lib, stdenv, makeModulesClosure, runCommand, writeReferencesToFile, pkgsStatic -, busybox, cpio, cryptsetup, lvm2, microcodeAmd, microcodeIntel +{ lib, stdenvNoCC, makeModulesClosure, runCommand, writeReferencesToFile +, pkgsStatic, busybox, cpio, cryptsetup, lvm2, microcodeAmd, microcodeIntel }: let @@ -58,7 +58,7 @@ let cp ${pkgsStatic.util-linuxMinimal}/bin/{findfs,lsblk} $out/bin ''; - microcode = if stdenv.hostPlatform.isx86_64 then + microcode = if stdenvNoCC.hostPlatform.isx86_64 then runCommand "microcode.cpio" { nativeBuildInputs = [ cpio ]; } '' @@ -78,7 +78,7 @@ let ''; in -stdenv.mkDerivation { +stdenvNoCC.mkDerivation { name = "initramfs"; src = cleanSourceWith { -- cgit 1.4.1