From 989248df121118a0c6754bf2540061f212ad8f50 Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Mon, 25 Jun 2018 20:07:50 -0400 Subject: [PATCH] boot.img: fixes for cross. --- systems/bootimg.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/systems/bootimg.nix b/systems/bootimg.nix index 0c83efef..fe7f51cc 100644 --- a/systems/bootimg.nix +++ b/systems/bootimg.nix @@ -4,8 +4,8 @@ }: let pkgs = (import ../overlay); + inherit (pkgs) buildPackages; in -with pkgs; let device_name = device_config.name; device_info = device_config.info; @@ -16,15 +16,18 @@ let # TODO : Allow appending / prepending cmdline = device_info.kernel_cmdline; in -stdenv.mkDerivation { +pkgs.stdenv.mkDerivation { name = "nixos-mobile_${device_name}_boot.img"; src = builtins.filterSource (path: type: false) ./.; unpackPhase = "true"; + nativeBuildInputs = [ + buildPackages.mkbootimg + buildPackages.dtbTool + ]; + buildInputs = [ - mkbootimg - dtbTool linux ];