Skip to content

Comments

add clarifying example to nix-env output selection#8990

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
fricklerhandwerk:example-nix-env-install-outputs
Sep 21, 2023
Merged

add clarifying example to nix-env output selection#8990
Ericson2314 merged 1 commit intoNixOS:masterfrom
fricklerhandwerk:example-nix-env-install-outputs

Conversation

@fricklerhandwerk
Copy link
Contributor

Motivation

there is a very confusing warning in the Nixpkgs manual that mischaracterises nix-env behavior, and this example shows what's really happening.

Context

note that it doesn't use pkgs.runCommand or other pkgs.stdenv facilities, as deep down those set meta.outputsToInstall to very particular defaults that do not generally apply to Nix.

Priorities

Add 👍 to pull requests you find important.

there is a very confusing warning in the Nixpkgs manual that
mischaracterises `nix-env` behavior, and this example shows what's
really happening.

note that it doesn't use `pkgs.runCommand` or other `pkgs.stdenv`
facilities, as deep down those set `meta.outputsToInstall` to very
particular defaults that do not generally apply to Nix.
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2023-09-21-documentation-team-meeting-notes-81/33490/1

@fricklerhandwerk fricklerhandwerk deleted the example-nix-env-install-outputs branch October 9, 2023 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants