1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-11-28 12:56:54 +03:00

boot.img: fixes for cross.

This commit is contained in:
Samuel Dionne-Riel 2018-06-25 20:07:50 -04:00
parent 75465eaddb
commit 989248df12

View File

@ -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
];