mirror of
https://github.com/samueldr/wip-pinebook-pro.git
synced 2024-11-23 19:39:43 +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
|
let
|
||||||
inherit (pkgs.pkgsCross.aarch64-multiplatform) callPackage;
|
pkgs = if builtins.currentSystem == "aarch64-linux"
|
||||||
|
then pkgs'
|
||||||
|
else pkgs'.pkgsCross.aarch64-multiplatform
|
||||||
|
;
|
||||||
|
|
||||||
|
inherit (pkgs) callPackage;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
u-boot = callPackage ./u-boot.nix {};
|
u-boot = callPackage ./u-boot.nix {};
|
||||||
|
|
Loading…
Reference in a new issue