diff --git a/doc/stdenv/meta.chapter.md b/doc/stdenv/meta.chapter.md index 63d9d24ab8db..3c662d40dcf3 100644 --- a/doc/stdenv/meta.chapter.md +++ b/doc/stdenv/meta.chapter.md @@ -77,7 +77,7 @@ A link or a list of links to the location of Changelog for a package. A link may ### `license` {#var-meta-license} -The license, or licenses, for the package. One from the attribute set defined in [`nixpkgs/lib/licenses.nix`](https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix). At this moment using both a list of licenses and a single license is valid. If the license field is in the form of a list representation, then it means that parts of the package are licensed differently. Each license should preferably be referenced by their attribute. The non-list attribute value can also be a space delimited string representation of the contained attribute `shortNames` or `spdxIds`. The following are all valid examples: +The license, or licenses, for the package. One from the attribute set defined in [`nixpkgs/lib/licenses/licenses.nix`](https://github.com/NixOS/nixpkgs/blob/master/lib/licenses/licenses.nix). At this moment using both a list of licenses and a single license is valid. If the license field is in the form of a list representation, then it means that parts of the package are licensed differently. Each license should preferably be referenced by their attribute. The non-list attribute value can also be a space delimited string representation of the contained attribute `shortNames` or `spdxIds`. The following are all valid examples: - Single license referenced by attribute (preferred) `lib.licenses.gpl3Only`. - Single license referenced by its attribute shortName (frowned upon) `"gpl3Only"`. @@ -216,7 +216,7 @@ If this list is not empty, the package is marked as "insecure", meaning that it ## Licenses {#sec-meta-license} -The `meta.license` attribute should preferably contain a value from `lib.licenses` defined in [`nixpkgs/lib/licenses.nix`](https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix), or in-place license description of the same format if the license is unlikely to be useful in another expression. +The `meta.license` attribute should preferably contain a value from `lib.licenses` defined in [`nixpkgs/lib/licenses/licenses.nix`](https://github.com/NixOS/nixpkgs/blob/master/lib/licenses/licenses.nix), or in-place license description of the same format if the license is unlikely to be useful in another expression. Although it’s typically better to indicate the specific license, a few generic options are available: diff --git a/doc/using/configuration.chapter.md b/doc/using/configuration.chapter.md index c54124fbe7a6..98f5d76250d9 100644 --- a/doc/using/configuration.chapter.md +++ b/doc/using/configuration.chapter.md @@ -152,7 +152,7 @@ There are several ways to tweak how Nix handles a package which has been marked Note that `allowlistedLicenses` only applies to unfree licenses unless `allowUnfree` is enabled. It is not a generic allowlist for all types of licenses. `blocklistedLicenses` applies to all licenses. -A complete list of licenses can be found in the file `lib/licenses.nix` of the nixpkgs tree. +A complete list of licenses can be found in the file [`nixpkgs/lib/licenses/licenses.nix`](https://github.com/NixOS/nixpkgs/blob/master/lib/licenses/licenses.nix) of the nixpkgs tree. ## Installing insecure packages {#sec-allow-insecure}