summary refs log tree commit diff
path: root/doc/using
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2021-01-10 22:30:22 +0100
committerProfpatsch <mail@profpatsch.de>2021-01-11 09:52:27 +0100
commitb0c1583a0b606560a4a47322fc849cfc1cfa0090 (patch)
tree9aaa3f124d722c2e6231fd1f6bfa38e9d6d1fabc /doc/using
parent9ff73686ed0127d9cc65633053e6d7a554ff179a (diff)
downloadnixpkgs-b0c1583a0b606560a4a47322fc849cfc1cfa0090.tar
nixpkgs-b0c1583a0b606560a4a47322fc849cfc1cfa0090.tar.gz
nixpkgs-b0c1583a0b606560a4a47322fc849cfc1cfa0090.tar.bz2
nixpkgs-b0c1583a0b606560a4a47322fc849cfc1cfa0090.tar.lz
nixpkgs-b0c1583a0b606560a4a47322fc849cfc1cfa0090.tar.xz
nixpkgs-b0c1583a0b606560a4a47322fc849cfc1cfa0090.tar.zst
nixpkgs-b0c1583a0b606560a4a47322fc849cfc1cfa0090.zip
doc: stdenv.lib -> lib
Part of: https://github.com/NixOS/nixpkgs/issues/108938

Changing the documentation to not refer to stdenv.lib is the first
step to make people use it directly.
Diffstat (limited to 'doc/using')
-rw-r--r--doc/using/configuration.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/using/configuration.xml b/doc/using/configuration.xml
index 336bdf5b265..1e1df867e08 100644
--- a/doc/using/configuration.xml
+++ b/doc/using/configuration.xml
@@ -157,7 +157,7 @@
      The following example configuration whitelists the licenses <literal>amd</literal> and <literal>wtfpl</literal>:
 <programlisting>
 {
-  whitelistedLicenses = with stdenv.lib.licenses; [ amd wtfpl ];
+  whitelistedLicenses = with lib.licenses; [ amd wtfpl ];
 }
 </programlisting>
     </para>
@@ -165,7 +165,7 @@
      The following example configuration blacklists the <literal>gpl3Only</literal> and <literal>agpl3Only</literal> licenses:
 <programlisting>
 {
-  blacklistedLicenses = with stdenv.lib.licenses; [ agpl3Only gpl3Only ];
+  blacklistedLicenses = with lib.licenses; [ agpl3Only gpl3Only ];
 }
 </programlisting>
     </para>