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 \