Skip to content

Commit 5a53bbf

Browse files
authored
docs: clarify CI usage (#192)
Can't run `$(nix-build shell.nix)` because it's a directory. Can't run `$(nix-build shell.nix)/entrypoint` because `$PRJ_ROOT` env var is missing. Gotta do what these docs now say, to be able to successfully use devshell on CI systems.
1 parent cb76bc7 commit 5a53bbf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/ci.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ The `devshell.toml` would have it as part of its commands:
2525
package = "gnumake"
2626
```
2727

28-
All the CI has to do, is this: `$(nix-build shell.nix) make`.
28+
All the CI has to do, is this: `nix-shell --run "$(nix-build shell.nix)/entrypoint make"`.
2929

30-
1. `nix-build shell.nix` outputs a path to the entrypoint script
30+
1. `$(nix-build shell.nix)/entrypoint` outputs a path to the entrypoint script
31+
1. `nix-shell --run` sets the required environment variables for the entrypoint script to work.
3132
2. The entrypoint script is executed with `make` as an argument. It loads the
3233
environment.
3334
3. Finally make is executed in the context of the project environment, with

0 commit comments

Comments
 (0)