feat: allow specifying a path to flake.nix within the repository

This commit is contained in:
Aaron Andersen 2022-09-07 22:11:56 -04:00 committed by Cole Helbling
parent 0ed7fb71ea
commit 0ad9a55048
3 changed files with 10 additions and 0 deletions

View file

@ -1,6 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
if [[ -n "$PATH_TO_FLAKE_DIR" ]]; then
cd "$PATH_TO_FLAKE_DIR"
fi
if [[ -n "$TARGETS" ]]; then
inputs=()
for input in $TARGETS; do