flare-signal: get a better cross-compiled build (via emulation)
This commit is contained in:
parent
6d8f9edfd0
commit
626fe1946d
|
@ -2,13 +2,15 @@
|
||||||
# UI is effectively a clone of Fractal.
|
# UI is effectively a clone of Fractal.
|
||||||
# compatibility:
|
# compatibility:
|
||||||
# - desko: works fine. pairs, and exchanges contact list (but not message history) with the paired device. exchanges future messages fine.
|
# - desko: works fine. pairs, and exchanges contact list (but not message history) with the paired device. exchanges future messages fine.
|
||||||
# - moby (cross compiled): nope. it pairs, but can only *receive* messages and never *send* them.
|
# - moby (cross compiled flare-signal-nixified): nope. it pairs, but can only *receive* messages and never *send* them.
|
||||||
# - even `rsync`ing the data and keyrings from desko -> moby, still fails in that same manner.
|
# - even `rsync`ing the data and keyrings from desko -> moby, still fails in that same manner.
|
||||||
# - console shows error messages. quite possibly an endianness mismatch somewhere
|
# - console shows error messages. quite possibly an endianness mismatch somewhere
|
||||||
|
# - moby (partially-emulated flare-signal): works! pairs and can send/receive messages, same as desko.
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
sane.programs.flare-signal = {
|
sane.programs.flare-signal = {
|
||||||
package = pkgs.flare-signal-nixified;
|
# package = pkgs.flare-signal-nixified;
|
||||||
|
package = pkgs.flare-signal;
|
||||||
persist.private = [
|
persist.private = [
|
||||||
# everything: conf, state, files, all opaque
|
# everything: conf, state, files, all opaque
|
||||||
".local/share/flare"
|
".local/share/flare"
|
||||||
|
|
|
@ -562,6 +562,11 @@ in {
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
flare-signal = prev.flare-signal.override {
|
||||||
|
# fixes "cargo:warning=aarch64-unknown-linux-gnu-gcc: error: unrecognized command-line option ‘-m64’"
|
||||||
|
inherit (emulated) cargo meson rustc rustPlatform stdenv;
|
||||||
|
};
|
||||||
|
|
||||||
flare-signal-nixified = prev.flare-signal-nixified.override {
|
flare-signal-nixified = prev.flare-signal-nixified.override {
|
||||||
# N.B. blueprint-compiler is in nativeBuildInputs.
|
# N.B. blueprint-compiler is in nativeBuildInputs.
|
||||||
# the trick here is to force the aarch64 versions to be used during build (via emulation).
|
# the trick here is to force the aarch64 versions to be used during build (via emulation).
|
||||||
|
|
Loading…
Reference in New Issue
Block a user