oxicloud: remove target-cpu=native flag to make builds more portable
Co-authored-by: Darkone Linux <darkone@darkone.yt>
This commit is contained in:
co-authored by
Darkone Linux
parent
d8a95822a3
commit
8dea11636d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user