From 58dba3b4da2aa68cfb55da18065616161f8637c2 Mon Sep 17 00:00:00 2001 From: matthewcroughan Date: Wed, 20 Nov 2024 02:54:49 +0000 Subject: [PATCH] cardinal: fix cross-compilation --- pkgs/by-name/ca/cardinal/package.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ca/cardinal/package.nix b/pkgs/by-name/ca/cardinal/package.nix index a9d653b2f0f2..b516702ec8b7 100644 --- a/pkgs/by-name/ca/cardinal/package.nix +++ b/pkgs/by-name/ca/cardinal/package.nix @@ -69,7 +69,9 @@ stdenv.mkDerivation rec { ]; hardeningDisable = [ "format" ]; - makeFlags = lib.optional headless "HEADLESS=true" ++ [ "SYSDEPS=true" "PREFIX=$(out)" ]; + makeFlags = [ "SYSDEPS=true" "PREFIX=$(out)" ] + ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "CROSS_COMPILING=true" + ++ lib.optional headless "HEADLESS=true"; postInstall = '' wrapProgram $out/bin/Cardinal \