makeInitrd: Use stdenvNoCC
This commit is contained in:
parent
cae6db88d3
commit
328796d734
@ -12,7 +12,7 @@
|
||||
# `contents = {object = ...; symlink = /init;}' is a typical
|
||||
# argument.
|
||||
|
||||
{ stdenv, perl, cpio, contents, ubootTools
|
||||
{ stdenvNoCC, perl, cpio, contents, ubootTools
|
||||
, name ? "initrd"
|
||||
, compressor ? "gzip -9n"
|
||||
, prepend ? []
|
||||
@ -23,15 +23,15 @@ let
|
||||
toValidStoreName = x: with builtins;
|
||||
lib.concatStringsSep "-" (filter (x: !(isList x)) (split "[^a-zA-Z0-9_=.?-]+" x));
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
in stdenvNoCC.mkDerivation rec {
|
||||
inherit name;
|
||||
|
||||
builder = ./make-initrd.sh;
|
||||
|
||||
makeUInitrd = stdenv.hostPlatform.platform.kernelTarget == "uImage";
|
||||
makeUInitrd = stdenvNoCC.hostPlatform.platform.kernelTarget == "uImage";
|
||||
|
||||
nativeBuildInputs = [ perl cpio ]
|
||||
++ stdenv.lib.optional makeUInitrd ubootTools;
|
||||
++ stdenvNoCC.lib.optional makeUInitrd ubootTools;
|
||||
|
||||
# !!! should use XML.
|
||||
objects = map (x: x.object) contents;
|
||||
@ -50,4 +50,3 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
inherit compressor prepend;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user