actions-marketplace-validations/use-nix-shell-action

Apply a nix shell to a GitHub Actions job.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Feb 24, 2023
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions-marketplace-validations/rrbutani_use-nix-shell-action@59a52b2b9bbfe3cc0e7deb8f9059abe37a439edf # no releases — HEAD as of 2026-07-13

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
exportEnvBoolean indicating whether to export the specified shell's environment into your GitHub Actions job's environment. notrue
preserveDefaultPathBoolean 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. notrue
packagesComma-separated list of packages to install in the shell.no
flakesComma-separated list of flake references to install in the shell. no
devShellFlake path to a devShell.no
filePath to a file (i.e. shell.nix) describing the shell.no
scriptA script to run under the shell specified.no
interpreterThe interpreter under which to run `script`.nobash
clearEnvForScriptBoolean 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. notrue
extraNixOptionsExtra options to pass to the nix invocation used to construct the shell. no""

no outputs