1
0
Fork 0
mirror of https://github.com/NixOS/nix-pills synced 2024-09-19 04:00:13 -04:00

Pill 17: fix asciidoc-full name

Attempting to build this as specified in the current docs
fails with the error:

nix-repl> :b pkgs.asciidocFull
error: 'asciidocFull' has been renamed to/replaced by 'asciidoc-full'
This commit is contained in:
Misty De Méo 2023-03-31 09:58:53 -07:00
parent d5a77c7225
commit d12bd1b71d
No known key found for this signature in database
GPG key ID: 74CF3AD781D5453D
2 changed files with 3 additions and 3 deletions

View file

@ -97,11 +97,11 @@
</para>
<screen><xi:include href="./17/config-nix.txt" parse="text" /></screen>
<para>
Now we can build e.g. <package>asciidocFull</package> and it will automatically use the overridden <package>graphviz</package>:
Now we can build e.g. <package>asciidoc-full</package> and it will automatically use the overridden <package>graphviz</package>:
</para>
<screen><xi:include href="./17/build-asciidoc-graphviz-override.txt" parse="text" /></screen>
<para>
Note how we pass the <literal>config</literal> with <literal>packageOverrides</literal> when importing <literal>nixpkgs</literal>. Then <literal>pkgs.asciidocFull</literal> is a derivation that has <package>graphviz</package> input (<literal>pkgs.asciidoc</literal> is the lighter version and doesn't use <package>graphviz</package> at all).
Note how we pass the <literal>config</literal> with <literal>packageOverrides</literal> when importing <literal>nixpkgs</literal>. Then <literal>pkgs.asciidoc-full</literal> is a derivation that has <package>graphviz</package> input (<literal>pkgs.asciidoc</literal> is the lighter version and doesn't use <package>graphviz</package> at all).
</para>
<para>
Since there's no version of <package>asciidoc</package> with <package>graphviz</package> without X support in the binary cache, Nix will recompile the needed stuff for you.

View file

@ -1,2 +1,2 @@
nix-repl> pkgs = import <nixpkgs> { config = import ./config.nix; }
nix-repl> :b pkgs.asciidocFull
nix-repl> :b pkgs.asciidoc-full