fix quadphone build

This commit is contained in:
Henry Hiles 2026-11-10 10:38:14 -05:00
commit f2477130fd
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
3 changed files with 17 additions and 11 deletions

View file

@ -124,13 +124,7 @@ in
); );
} }
) )
( (_: prev: builtins.mapAttrs (name: v: if isPhoneCross prev then pick [ name ] v else v) prev)
_: prev:
builtins.mapAttrs (
name: v:
if isPhoneCross prev then pick [ name ] v else v
) prev
)
]; ];
}; };
} }

View file

@ -1,9 +1,21 @@
{ inputs, lib, ... }: {
inputs,
lib,
pkgs,
...
}:
{ {
imports = [ inputs.nixphone.nixosModules.sdm845-oneplus-fajita ]; imports = [ inputs.nixphone.nixosModules.sdm845-oneplus-fajita ];
quadphone.crossPackages = [ boot.kernelPatches = [
"nix-direnv" {
name = "rust-fix-rustc-option-cross";
patch = pkgs.fetchpatch {
name = "rust-kasan-kbuild-fix-rustc-option-when-cross-compiling.patch";
url = "https://github.com/torvalds/linux/commit/4a44b17406cb5a93f90af3df9392b3a45eb336fb.patch";
hash = "sha256-+mOEhCM+LDRFEk/7y1hEgpH1Ane4bdH1xmA55gaRCro=";
};
}
]; ];
# TODO: flutter apps don't cross compile, and the flake's package isn't cached # TODO: flutter apps don't cross compile, and the flake's package isn't cached

2
flake.lock generated
View file

@ -722,7 +722,7 @@
}, },
"locked": { "locked": {
"lastModified": 0, "lastModified": 0,
"narHash": "sha256-SkR1Brw/vcZnlekZGrhTs26/qMF1EzZ1oVjijZgjVhY=", "narHash": "sha256-2UHvyoarUiV+3vfKxLnrIa2Fj6uokJ6YpxW/j34x0HM=",
"type": "git", "type": "git",
"url": "file:///home/quadradical/Documents/Code/nixos-gnome-mobile" "url": "file:///home/quadradical/Documents/Code/nixos-gnome-mobile"
}, },