oxicloud: remove target-cpu=native flag to make builds more portable

Co-authored-by: Darkone Linux <darkone@darkone.yt>
This commit is contained in:
FlashOnFire_
2026-06-05 22:53:27 +02:00
co-authored by Darkone Linux
parent d8a95822a3
commit 8dea11636d
+6
View File
@@ -29,6 +29,12 @@ rustPlatform.buildRustPackage (finalAttrs: {
cargoBuildFlags = [ "--bin=oxicloud" ];
postPatch = ''
# Upstream pins `target-cpu=native`, making the binary non-portable
# (breaks the binary cache). Build for the generic baseline instead.
rm -f .cargo/config.toml
'';
postInstall = ''
mkdir -p $out/share/oxicloud
cp -r static-dist $out/share/oxicloud/static