Skip to content

How to use nix develop in the new nix style shebang #13485

@roberth

Description

@roberth

Problem

https://nix.dev/manual/nix/2.28/command-ref/new-cli/nix#shebang-interpreter shows a nix shell example.
Another important use case for it is nix develop, but this is somewhat tricky to use.
An example should show a valid nix develop shebang that users can start with.

Incidentally, it seems that without it, they have a good chance of setting off a fork bomb. Yay.

Proposal

  1. Add a nix develop shebang example to https://nix.dev/manual/nix/2.28/command-ref/new-cli/nix#shebang-interpreter

  2. Add a link or example on the nix develop page

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationnew-cliRelating to the "nix" commandnix-shellnix-shell, nix develop, nix print-dev-env, etc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions