summaryrefslogtreecommitdiffstats
path: root/pkgs/misc/uboot
diff options
context:
space:
mode:
authorBen Wolsieffer <benwolsieffer@gmail.com>2020-07-11 19:37:58 -0400
committerBen Wolsieffer <benwolsieffer@gmail.com>2020-07-11 20:17:33 -0400
commit6a0bb38b276ccd7a31776b4defaa0f3842435567 (patch)
tree6507a50cdbf11529073be4b38a715d87e241dac0 /pkgs/misc/uboot
parent8d05772134f17180fb2711d0660702dae2a67313 (diff)
uboot: add hydra-build-products
This allows users to easily download the bootloader for their device without having Nix installed.
Diffstat (limited to 'pkgs/misc/uboot')
-rw-r--r--pkgs/misc/uboot/default.nix5
1 files changed, 5 insertions, 0 deletions
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
'';