nix-shell-action

Run any command you like in a deterministic Nix shell on Linux and macOS.

MIT License

Stars
40
Committers
4

Bot releases are visible (Hide)

nix-shell-action - v3.4.0

Published by workflow 29 days ago

What's Changed

Full Changelog: https://github.com/workflow/nix-shell-action/compare/v3.3.2...v3.4.0

nix-shell-action - v3.3.2 Latest Release

Published by workflow 4 months ago

nix-shell-action - v3.3.1

Published by workflow 4 months ago

What's Changed

Full Changelog: https://github.com/workflow/nix-shell-action/compare/v3.3.0...v3.3.1

nix-shell-action - Support DevShells

Published by workflow about 1 year ago

What's Changed

Automatic inputs from a flake.nix DevShell are now supported, thanks to @luchiniatwork 🎉

New Contributors

Full Changelog: https://github.com/workflow/nix-shell-action/compare/v3.2.1...v3.3.0

nix-shell-action - v3.2.1

Published by workflow over 1 year ago

What's Changed

Thanks to @jamesward for catching this.

Full Changelog: https://github.com/workflow/nix-shell-action/compare/v3.2.0...v3.2.1

nix-shell-action - v3.2.0

Published by workflow almost 2 years ago

What's Changed

Full Changelog: https://github.com/workflow/nix-shell-action/compare/v3.1.0...v3.2.0

nix-shell-action - v3.1.0

Published by workflow almost 2 years ago

Support Fully Qualified and Local Flakes

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
nix-shell-action - Fix Noisy Error and Update Deps

Published by workflow about 2 years ago

What's Changed

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

nix-shell-action - Update internal dependencies

Published by workflow over 2 years ago

nix-shell-action - Update internal dependencies

Published by workflow over 2 years ago

What's Changed

Full Changelog: https://github.com/workflow/nix-shell-action/compare/v3...v3.0.1

nix-shell-action - Support Nix 2.4

Published by workflow almost 3 years ago

nix-shell-action - Allow for spaces and update dependencies

Published by workflow almost 3 years ago

Allows for spaces in the list of package names (thanks to @diamondburned!)

nix-shell-action - Nix Shell Action

Published by workflow about 4 years ago

Run any command you like in a deterministic Nix shell on Linux and macOS.