Skip to content

GitHub action to run commands in a Nix development shell

License

Notifications You must be signed in to change notification settings

lriesebos/nix-develop-command

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix develop command GitHub action

GitHub Actions badge

This GitHub action is used to run commands in a Nix development shell (i.e. using a flake).

Usage

This GitHub action does not install Nix, use the cachix/install-nix-action before using this action. By default, this action assumes the flake.nix file is located in the current working directory.

jobs:
  ubuntu:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: cachix/install-nix-action@v20
      - uses: lriesebos/nix-develop-command@v1
        with:
          command: "hello"

Inputs

  • command: The command to run (required)
  • devshell: Name of the development shell (default: default)
  • options: Additional options/arguments for nix develop
  • working-directory: Working directory (default: ./)

About

GitHub action to run commands in a Nix development shell

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages