Nix/src/nix/profile-install.md
Valentin Gagarin 2af9fd20c6 clarify definition of "installable"
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>
2023-03-05 01:46:17 +01:00

597 B

R""(

Examples

  • Install a package from Nixpkgs:

    # nix profile install nixpkgs#hello
    
  • Install a package from a specific branch of Nixpkgs:

    # nix profile install nixpkgs/release-20.09#hello
    
  • Install a package from a specific revision of Nixpkgs:

    # nix profile install nixpkgs/d73407e8e6002646acfdef0e39ace088bacc83da#hello
    
  • Install a specific output of a package:

    # nix profile install nixpkgs#bash^man
    

Description

This command adds installables to a Nix profile.

)""