Skip to content

Commit

Permalink
Merge pull request #311902 from wamirez/nix-env-rm
Browse files Browse the repository at this point in the history
doc: clarify consequences of `lib.meta.setName`
  • Loading branch information
wegank authored May 22, 2024
2 parents 16d101c + 7acc08c commit 1c91e55
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/meta.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ rec {
dontDistribute = drv: addMetaAttrs { hydraPlatforms = []; } drv;


/* Change the symbolic name of a package for presentation purposes
(i.e., so that nix-env users can tell them apart).
/*
Change the [symbolic name of a derivation](https://nixos.org/manual/nix/stable/language/derivations.html#attr-name).
:::{.warning}
Dependent derivations will be rebuilt when the symbolic name is changed.
:::
*/
setName = name: drv: drv // {inherit name;};

Expand Down

0 comments on commit 1c91e55

Please sign in to comment.