-
-
Save cleverca22/3f238420cd764bc3e449d41b84dbc763 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ runCommand, eeprom-extractor, rpi-eeprom, time }: | |
runCommand "extracted" { buildInputs = [ eeprom-extractor time ]; } '' | |
for channel in beta critical stable; do | |
for file in ${rpi-eeprom}/firmware/$channel/pieeprom*.bin; do | |
cp -v $file $channel-$(basename $file) | |
done | |
done | |
mkdir $out | |
cd $out | |
for file in $NIX_BUILD_TOP/*.bin; do | |
name=$(basename $file) | |
name=''${name%.*} | |
echo $file X ''$name | |
mkdir $name | |
pushd $name | |
command time -v extractor $file | |
popd | |
done | |
'' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment