Auto-detects the need to cross-compile.
This commit is contained in:
parent
d611cf7fef
commit
2603855a47
|
@ -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 New Issue