2019-05-10 13:20:40 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2019-06-04 17:00:19 +00:00
|
|
|
GIT_ROOT=$(cd "${BASH_SOURCE%/*}" && git rev-parse --show-toplevel)
|
2019-05-10 13:20:40 +00:00
|
|
|
|
|
|
|
rm -rf .nix-gcroots
|
|
|
|
mkdir .nix-gcroots
|
|
|
|
|
|
|
|
drv=$(nix-instantiate shell.nix)
|
|
|
|
refs=$(nix-store --query --references $drv)
|
|
|
|
nix-store -r $refs --indirect --add-root $GIT_ROOT/.nix-gcroots/shell.dep
|