3
0
Fork 0
forked from mirrors/nixpkgs

nixos: use only URI fragment in manual options links

This commit is contained in:
Bobby Rong 2021-07-04 10:12:05 +08:00
parent 9f4535ff16
commit 45a5a6815c
4 changed files with 5 additions and 6 deletions

View file

@ -13,7 +13,7 @@ $ cd nixpkgs
```
Then you write and test the package as described in the Nixpkgs manual.
Finally, you add it to [`environment.systemPackages`](options.html#opt-environment.systemPackages), e.g.
Finally, you add it to [](#opt-environment.systemPackages), e.g.
```nix
environment.systemPackages = [ pkgs.my-package ];

View file

@ -28,7 +28,7 @@ arguments specified by you. So here the function argument `gtk` gets the
value `pkgs.gtk3`, causing Emacs to depend on GTK 3. (The parentheses
are necessary because in Nix, function application binds more weakly
than list construction, so without them,
[`environment.systemPackages`](options.html#opt-environment.systemPackages)
[](#opt-environment.systemPackages)
would be a list with two elements.)
Even greater customisation is possible using the function

View file

@ -16,8 +16,7 @@ $ cd nixpkgs
<para>
Then you write and test the package as described in the Nixpkgs
manual. Finally, you add it to
<link xlink:href="options.html#opt-environment.systemPackages"><literal>environment.systemPackages</literal></link>,
e.g.
<xref linkend="opt-environment.systemPackages" />, e.g.
</para>
<programlisting language="bash">
environment.systemPackages = [ pkgs.my-package ];

View file

@ -33,8 +33,8 @@ environment.systemPackages = [ (pkgs.emacs.override { gtk = pkgs.gtk3; }) ];
<literal>pkgs.gtk3</literal>, causing Emacs to depend on GTK 3. (The
parentheses are necessary because in Nix, function application binds
more weakly than list construction, so without them,
<link xlink:href="options.html#opt-environment.systemPackages"><literal>environment.systemPackages</literal></link>
would be a list with two elements.)
<xref linkend="opt-environment.systemPackages" /> would be a list
with two elements.)
</para>
<para>
Even greater customisation is possible using the function