tayga: fix build on 32-bit host platform (#440083)
This commit is contained in:
@@ -18,6 +18,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
makeFlags = [ "CC=${lib.getExe stdenv.cc}" ];
|
||||
|
||||
env = lib.optionalAttrs stdenv.hostPlatform.is32bit {
|
||||
NIX_CFLAGS_COMPILE = "-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64";
|
||||
};
|
||||
|
||||
preBuild = ''
|
||||
echo "#define TAYGA_VERSION \"${finalAttrs.version}\"" > version.h
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user