about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2024-05-22 19:15:22 +0200
committerGitHub <noreply@github.com>2024-05-22 19:15:22 +0200
commit1c91e55a2d36d39ce3997d537fe26edd0e38aa79 (patch)
tree14184bcfd7b5b89060742e36fcbd9c24bf086d4b /lib
parent16d101c84afb0bbe0dc1ff1b25355935b4d08c12 (diff)
parent7acc08c9833e876447675f2a89e1a154e22fa6bc (diff)
Merge pull request #311902 from wamirez/nix-env-rm
doc: clarify consequences of `lib.meta.setName`
Diffstat (limited to 'lib')
-rw-r--r--lib/meta.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/meta.nix b/lib/meta.nix
index 675e1912d4be9..9a97afb1aa9b0 100644
--- a/lib/meta.nix
+++ b/lib/meta.nix
@@ -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;};