uboot: add hydra-build-products

This allows users to easily download the bootloader for their device without
having Nix installed.
This commit is contained in:
Ben Wolsieffer 2020-07-11 19:37:58 -04:00
parent 8d05772134
commit 6a0bb38b27

View File

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