diff --git a/default.nix b/default.nix index b67e33b..ab0e80d 100644 --- a/default.nix +++ b/default.nix @@ -1,9 +1,14 @@ { - pkgs ? import {} + pkgs' ? import {} }: 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 {};