2020-12-18 13:25:36 +00:00
|
|
|
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
|
|
|
|
```
|
|
|
|
|
2022-05-03 12:37:28 +00:00
|
|
|
* Install a specific output of a package:
|
|
|
|
|
|
|
|
```console
|
|
|
|
# nix profile install nixpkgs#bash^man
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2020-12-18 13:25:36 +00:00
|
|
|
# Description
|
|
|
|
|
2022-12-01 00:57:02 +00:00
|
|
|
This command adds [*installables*](./nix.md#installables) to a Nix profile.
|
2020-12-18 13:25:36 +00:00
|
|
|
|
|
|
|
)""
|