fractal-latest: support cross compilation (this method takes about 60minutes. 45m for deps and 15m for fractal itself)

This commit is contained in:
Colin 2023-09-29 21:42:36 +00:00
parent 38fa73cfb7
commit 5b8850404b
2 changed files with 8 additions and 0 deletions

View File

@ -534,6 +534,13 @@ in {
# # seems to hang when compiling fractal
# inherit (emulated) cargo meson rustc rustPlatform stdenv;
# };
fractal-latest = prev.fractal-latest.override {
# fixes "cargo:warning=aarch64-unknown-linux-gnu-gcc: error: unrecognized command-line option -m64"
# seems to hang when compiling fractal
fractal-next = final.fractal-next.override {
inherit (emulated) cargo meson rustc rustPlatform stdenv;
};
};
# fractal-next = prev.fractal-next.overrideAttrs (upstream: {
# env = let
# inherit (final) buildPackages stdenv rust;

View File

@ -40,6 +40,7 @@ let
# 3. add "<crate_thats_missing_hash>" = "";
# 4. repeat until no more crates are missing hashes
# 5. build, and nix will let you know what the actual hashes should be
# TODO: alternative is to set `allowBuiltinFetchGit = true;`
"curve25519-dalek-4.0.0" = "sha256-sxEFR6lsX7t4u/fhWd6wFMYETI2egPUbjMeBWkB289E=";
"matrix-sdk-0.6.2" = "sha256-A1oKNbEx2A6WwvYcNSW53Fd6QWwr0QFJtrsJXO2KInE=";
"ruma-0.8.2" = "sha256-kCGS7ACFGgmtTUElLJQMYfjwJ3glF7bRPZYJIFcuPtc=";