From 50b6412a3146eabc4cd2a6a12eddbb514d3523f5 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sat, 13 Jan 2024 21:45:57 -0500 Subject: [PATCH] mingetty: fix cross compilation --- pkgs/os-specific/linux/mingetty/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/mingetty/default.nix b/pkgs/os-specific/linux/mingetty/default.nix index eb58dc553676..eff1bf50a361 100644 --- a/pkgs/os-specific/linux/mingetty/default.nix +++ b/pkgs/os-specific/linux/mingetty/default.nix @@ -9,9 +9,14 @@ stdenv.mkDerivation rec { sha256 = "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"; }; + makeFlags = [ + "CC:=$(CC)" + "SBINDIR=${placeholder "out"}/sbin" + "MANDIR=${placeholder "out"}/share/man/man8" + ]; + preInstall = '' mkdir -p $out/sbin $out/share/man/man8 - makeFlagsArray=(SBINDIR=$out/sbin MANDIR=$out/share/man/man8) ''; meta = with lib; {