|
|
Line 22: |
Line 22: |
| === [[Nix_command/build|nix build]] === | | === [[Nix_command/build|nix build]] === |
|
| |
|
| === <code>nix develop</code> ===
| | Build a derivation or fetch a store path. |
|
| |
|
| ==== Usage ==== | | === [[Nix_command/develop|nix develop]] === |
|
| |
|
| <syntaxHighlight lang=console>
| | Run a bash shell that provides the build environment of a derivation. |
| $ nix develop FLAGS... INSTALLABLE?
| |
| </syntaxHighlight>
| |
|
| |
|
| ==== Description ==== | | === [[Nix_command/flake|nix flake]] === |
|
| |
|
| run a bash shell that provides the build environment of a derivation.
| | Manage Nix flakes. |
| | |
| ==== Examples ====
| |
| | |
| To get the build environment of GNU hello:
| |
| | |
| <syntaxHighlight lang=console>
| |
| $ nix develop nixpkgs#hello
| |
| </syntaxHighlight>
| |
| | |
| To get the build environment of the default package of flake in the current directory:
| |
| <syntaxHighlight lang=console>
| |
| $ nix develop
| |
| </syntaxHighlight>
| |
| | |
| To store the build environment in a profile:
| |
| <syntaxHighlight lang=console>
| |
| $ nix develop --profile /tmp/my-shell nixpkgs#hello
| |
| </syntaxHighlight>
| |
| | |
| To use a build environment previously recorded in a profile:
| |
| <syntaxHighlight lang=console>
| |
| $ nix develop /tmp/my-shell
| |
| </syntaxHighlight>
| |
| | |
| === <code>nix flake</code> ===
| |
| | |
| === Usage: . ===
| |
| | |
| <syntaxHighlight lang=console>
| |
| $ nix flake COMMAND FLAGS... ARGS..
| |
| </syntaxHighlight>
| |
| | |
| === Description ===
| |
| Manage Nix flakes | |
| | |
| === <code>nix flake archive</code> ===
| |
| | |
| Copy a flake and all its inputs to a store
| |
| | |
| === <code>nix flake check</code> ===
| |
| | |
| Check whether the flake evaluates and run its tests
| |
| | |
| === <code>nix flake clone</code> ===
| |
| | |
| Clone flake repository
| |
| | |
| === <code>nix flake info</code> ===
| |
| | |
| list info about a given flake
| |
| | |
| === <code>nix flake init</code> ===
| |
|
| |
| Create a flake in the current directory from a template
| |
| | |
| === <code>nix flake list-inputs</code> ===
| |
| | |
| List flake inputs
| |
| | |
| === <code>nix flake new</code> ===
| |
| | |
| Create a flake in the specified directory from a template
| |
| | |
| === <code>nix flake show</code> ===
| |
| | |
| Show the outputs provided by a flake
| |
| | |
| === <code> nix flake update</code> ===
| |
| | |
| Update flake lock file
| |
|
| |
|
| | === [[Nix_command/profile|nix profile]] === |
| === <code>nix profile</code> === | | === <code>nix profile</code> === |
|
| |
|