From 1a70fa3bf11c5c0e0fbda0d9954fbb1f84f06414 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 17 Oct 2020 17:23:56 -0400 Subject: [PATCH] Allow 'hey update' to update individual inputs --- bin/hey | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/hey b/bin/hey index 9a4d0be3..1d8f25cb 100755 --- a/bin/hey +++ b/bin/hey @@ -59,7 +59,13 @@ function main { function _update { echo "Updating NixOS flake" - _do nix flake update --recreate-lock-file "$DOTFILES" + if [[ "$@" ]]; then + for flake in $@; do + _do nix flake update --update-input "$flake" "$DOTFILES" + done + else + _do nix flake update --recreate-lock-file "$DOTFILES" + fi } function _gc {