diff options
-rw-r--r-- | pkgs/os-specific/linux/mingetty/default.nix | 4 | ||||
-rw-r--r-- | pkgs/os-specific/linux/sysvinit/default.nix | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/mingetty/default.nix b/pkgs/os-specific/linux/mingetty/default.nix index fc3c50e1986e1..b27baa5480b90 100644 --- a/pkgs/os-specific/linux/mingetty/default.nix +++ b/pkgs/os-specific/linux/mingetty/default.nix @@ -8,6 +8,10 @@ stdenv.mkDerivation { sha256 = "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"; }; + crossAttrs = { + makeFlags = "CC=${stdenv.cross.config}-gcc"; + }; + preInstall = '' ensureDir $out/sbin $out/share/man/man8 makeFlagsArray=(SBINDIR=$out/sbin MANDIR=$out/share/man/man8) diff --git a/pkgs/os-specific/linux/sysvinit/default.nix b/pkgs/os-specific/linux/sysvinit/default.nix index a05638dcb77cb..4fa2a55367aa2 100644 --- a/pkgs/os-specific/linux/sysvinit/default.nix +++ b/pkgs/os-specific/linux/sysvinit/default.nix @@ -14,6 +14,10 @@ stdenv.mkDerivation { makeFlags = "SULOGINLIBS=-lcrypt ROOT=$(out) MANDIR=/share/man"; + crossAttrs = { + makeFlags = "SULOGINLIBS=-lcrypt ROOT=$(out) MANDIR=/share/man CC=${stdenv.cross.config}-gcc"; + }; + preInstall = '' substituteInPlace src/Makefile --replace /usr / |