fix quadphone build
This commit is contained in:
parent
0648f2bf6f
commit
f2477130fd
3 changed files with 17 additions and 11 deletions
|
|
@ -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)
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,21 @@
|
|||
{ inputs, lib, ... }:
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ inputs.nixphone.nixosModules.sdm845-oneplus-fajita ];
|
||||
|
||||
quadphone.crossPackages = [
|
||||
"nix-direnv"
|
||||
boot.kernelPatches = [
|
||||
{
|
||||
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
|
||||
|
|
|
|||
2
flake.lock
generated
2
flake.lock
generated
|
|
@ -722,7 +722,7 @@
|
|||
},
|
||||
"locked": {
|
||||
"lastModified": 0,
|
||||
"narHash": "sha256-SkR1Brw/vcZnlekZGrhTs26/qMF1EzZ1oVjijZgjVhY=",
|
||||
"narHash": "sha256-2UHvyoarUiV+3vfKxLnrIa2Fj6uokJ6YpxW/j34x0HM=",
|
||||
"type": "git",
|
||||
"url": "file:///home/quadradical/Documents/Code/nixos-gnome-mobile"
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue