From 6b870cd4dc15025b7bf60093d4394a0eb411387b Mon Sep 17 00:00:00 2001 From: Technofab Date: Wed, 14 Jun 2023 01:36:10 +0200 Subject: [PATCH] feat: allow specifying the target devShell via `NIX_CI_SHELL` --- ci-image/entrypoint.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 ci-image/entrypoint.sh diff --git a/ci-image/entrypoint.sh b/ci-image/entrypoint.sh old mode 100644 new mode 100755 index 18077a8..27c6ec9 --- a/ci-image/entrypoint.sh +++ b/ci-image/entrypoint.sh @@ -3,5 +3,7 @@ set -e cd "$CI_PROJECT_DIR" -echo "Activating flake's CI shell..." -nix develop .#ci --impure --command "bash" +nix_shell="${NIX_CI_SHELL:-ci}" + +echo "Activating flake's '$nix_shell' shell..." +nix develop .#"$nix_shell" --impure --command "bash"