rrbutani/use-nix-shell-action
Apply a nix shell to a GitHub Actions job.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| exportEnv | Boolean indicating whether to export the specified shell's environment into your GitHub Actions job's environment. | no | true |
| preserveDefaultPath | Boolean controlling whether the shell's environment *overrides* `$PATH` in the job (`false`) or appends to it (`true`). Note that things added to `$GITHUB_PATH` (i.e. by other actions) will be preserved regardless. | no | true |
| packages | Comma-separated list of packages to install in the shell. | no | — |
| flakes | Comma-separated list of flake references to install in the shell. | no | — |
| devShell | Flake path to a devShell. | no | — |
| file | Path to a file (i.e. shell.nix) describing the shell. | no | — |
| script | A script to run under the shell specified. | no | — |
| interpreter | The interpreter under which to run `script`. | no | bash |
| clearEnvForScript | Boolean specifying whether to preserve existing env vars when running the provided script. Note that this does not influence the environment that's exported and cannot be used to provide a "pure" shell for future steps in your action. | no | true |
| extraNixOptions | Extra options to pass to the nix invocation used to construct the shell. | no | "" |
Outputs
no outputs