From 8fc6a95bff210c6465f242f87b9dc36afd24d972 Mon Sep 17 00:00:00 2001 From: Rick van Schijndel Date: Thu, 29 Jul 2021 20:50:58 +0200 Subject: [PATCH] dmidecode: support cross-compilation --- pkgs/os-specific/linux/dmidecode/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/dmidecode/default.nix b/pkgs/os-specific/linux/dmidecode/default.nix index a12d97280f19..ae4e19ef0f84 100644 --- a/pkgs/os-specific/linux/dmidecode/default.nix +++ b/pkgs/os-specific/linux/dmidecode/default.nix @@ -53,7 +53,10 @@ stdenv.mkDerivation rec { }) ]; - makeFlags = [ "prefix=$(out)" ]; + makeFlags = [ + "prefix=$(out)" + "CC=${stdenv.cc.targetPrefix}cc" + ]; meta = with lib; { homepage = "https://www.nongnu.org/dmidecode/";