Run any command you like in a deterministic Nix shell on Linux and macOS.
MIT License
Bot releases are visible (Hide)
Published by workflow 29 days ago
Full Changelog: https://github.com/workflow/nix-shell-action/compare/v3.3.2...v3.4.0
Bump Node.js to 20
Full Changelog: https://github.com/workflow/nix-shell-action/compare/v3.3.1...v3.3.2
Published by workflow 4 months ago
Full Changelog: https://github.com/workflow/nix-shell-action/compare/v3.3.0...v3.3.1
Published by workflow about 1 year ago
Automatic inputs from a flake.nix DevShell
are now supported, thanks to @luchiniatwork 🎉
Full Changelog: https://github.com/workflow/nix-shell-action/compare/v3.2.1...v3.3.0
Published by workflow over 1 year ago
Thanks to @jamesward for catching this.
Full Changelog: https://github.com/workflow/nix-shell-action/compare/v3.2.0...v3.2.1
Published by workflow almost 2 years ago
Full Changelog: https://github.com/workflow/nix-shell-action/compare/v3.1.0...v3.2.0
Published by workflow almost 2 years ago
Instead of specifying packages
, you can use flakes
to specify fully qualified flakes to be available in your script.
This can be used for both local flakes in a flake.nix
in your repo, as well as external flakes.
name: "Test"
on:
pull_request:
push:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: workflow/nix-shell-action@v3
with:
flakes: .#hello,nixpkgs#docker
script: |
# Runs hello from a local flake.nix
hello
# Uses docker from the nixpkgs registry (see https://raw.githubusercontent.com/NixOS/flake-registry/master/flake-registry.json)
command -v docker
Published by workflow about 2 years ago
Thanks to @milahu in https://github.com/workflow/nix-shell-action/issues/244 for the branching fix.
Full Changelog: https://github.com/workflow/nix-shell-action/compare/v3.0.2...v3.0.3
Published by workflow over 2 years ago
Published by workflow over 2 years ago
Full Changelog: https://github.com/workflow/nix-shell-action/compare/v3...v3.0.1
Published by workflow almost 3 years ago
Published by workflow almost 3 years ago
Allows for spaces in the list of package names (thanks to @diamondburned!)
Published by workflow about 4 years ago
Run any command you like in a deterministic Nix shell on Linux and macOS.