tayga: fix build on 32-bit host platform

This commit is contained in:
Jared Baur
2025-09-04 09:04:03 +01:00
parent a4481fa8c1
commit 581372390f
+4
View File
@@ -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
'';