From 6a0bb38b276ccd7a31776b4defaa0f3842435567 Mon Sep 17 00:00:00 2001 From: Ben Wolsieffer Date: Sat, 11 Jul 2020 19:37:58 -0400 Subject: [PATCH] uboot: add hydra-build-products This allows users to easily download the bootloader for their device without having Nix installed. --- pkgs/misc/uboot/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/misc/uboot/default.nix b/pkgs/misc/uboot/default.nix index 85df90a9fe11..1c5cbadb780b 100644 --- a/pkgs/misc/uboot/default.nix +++ b/pkgs/misc/uboot/default.nix @@ -83,6 +83,11 @@ let mkdir -p ${installDir} cp ${lib.concatStringsSep " " filesToInstall} ${installDir} + mkdir -p "$out/nix-support" + ${lib.concatMapStrings (file: '' + echo "file binary-dist ${installDir}/${builtins.baseNameOf file}" >> "$out/nix-support/hydra-build-products" + '') filesToInstall} + runHook postInstall '';