Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 983 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 983 Bytes

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: ./)