curlftpfs-sane: fix cross compilation to 32bit platforms (i.e. armv7l-hf-multiplatform)

This commit is contained in:
2024-09-14 21:17:45 +00:00
parent d0555548b7
commit 7a75459249

View File

@@ -38,4 +38,9 @@
ln -s curlftpfs $out/bin/mount.fuse.curlftpfs
ln -s curlftpfs $out/bin/mount.curlftpfs
'';
env = (upstream.env or {}) // {
# fuse3 requires _off_t to be 8 bytes, and advises to add this flag for 32bit platforms.
NIX_CFLAGS_COMPILE = ((upstream.env or {}).NIX_CFLAGS_COMPILE or "") + " -D_FILE_OFFSET_BITS=64";
};
})