mirror of
https://github.com/samueldr/wip-pinebook-pro.git
synced 2024-11-05 18:49:41 +01:00
Auto-detects the need to cross-compile.
This commit is contained in:
parent
d611cf7fef
commit
2603855a47
1 changed files with 7 additions and 2 deletions
|
@ -1,9 +1,14 @@
|
|||
{
|
||||
pkgs ? import <nixpkgs> {}
|
||||
pkgs' ? import <nixpkgs> {}
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (pkgs.pkgsCross.aarch64-multiplatform) callPackage;
|
||||
pkgs = if builtins.currentSystem == "aarch64-linux"
|
||||
then pkgs'
|
||||
else pkgs'.pkgsCross.aarch64-multiplatform
|
||||
;
|
||||
|
||||
inherit (pkgs) callPackage;
|
||||
in
|
||||
{
|
||||
u-boot = callPackage ./u-boot.nix {};
|
||||
|
|
Loading…
Reference in a new issue