Last active
August 30, 2018 09:48
-
-
Save chisui/da629c5c626a37c87ab6a9142abdd160 to your computer and use it in GitHub Desktop.
watch script for nix
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
#! /bin/sh | |
SRC=$(nix-instantiate --eval $@ -A src) | |
echo "watching $SRC" | |
ack -f $SRC | entr nix-build $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment