cardinal: fix cross-compilation

This commit is contained in:
matthewcroughan 2024-11-20 02:54:49 +00:00
parent 1a32ccd82f
commit 58dba3b4da

View File

@ -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 \