forked from lix-project/lix
2af9fd20c6
the term was hard to discover, as its definition and explanation were in a very long document lacking an overview section. search did not help because it occurs so often. - clarify wording in the definition - add an overview of installable types - add "installable" to glossary - link to definition from occurrences of the term - be more precise about where store derivation outputs are processed - installable Nix expressions must evaluate to a derivation Co-authored-by: Adam Joseph <54836058+amjoseph-nixpkgs@users.noreply.github.com>
35 lines
597 B
Markdown
35 lines
597 B
Markdown
R""(
|
|
|
|
# Examples
|
|
|
|
* Install a package from Nixpkgs:
|
|
|
|
```console
|
|
# nix profile install nixpkgs#hello
|
|
```
|
|
|
|
* Install a package from a specific branch of Nixpkgs:
|
|
|
|
```console
|
|
# nix profile install nixpkgs/release-20.09#hello
|
|
```
|
|
|
|
* Install a package from a specific revision of Nixpkgs:
|
|
|
|
```console
|
|
# nix profile install nixpkgs/d73407e8e6002646acfdef0e39ace088bacc83da#hello
|
|
```
|
|
|
|
* Install a specific output of a package:
|
|
|
|
```console
|
|
# nix profile install nixpkgs#bash^man
|
|
```
|
|
|
|
|
|
# Description
|
|
|
|
This command adds [*installables*](./nix.md#installables) to a Nix profile.
|
|
|
|
)""
|