Created
July 1, 2017 20:59
-
-
Save infinisil/6eba3dc4431addbd651710cceae4eea2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #! /usr/bin/env nix-shell | |
| #! nix-shell -Q -i bash -p teensy-loader-cli pass | |
| password=$(pass MacBookAir | head -n 1) | |
| result=$(nix-build --argstr PW1 "$password") | |
| sudo teensy-loader-cli -mmcu=atmega32u4 -v -w "$result"/hex/* | |
| src=$(nix-store -q --binding src "$result") | |
| nix-store -q --roots "$src" | xargs rm | |
| nix-store -q --referrers-closure "$src" | xargs nix-store --delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment