mirror of
https://github.com/NixOS/nix-pills
synced 2024-11-10 13:54:14 +00: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:
parent
d5a77c7225
commit
d12bd1b71d
2 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
nix-repl> pkgs = import <nixpkgs> { config = import ./config.nix; }
|
||||
nix-repl> :b pkgs.asciidocFull
|
||||
nix-repl> :b pkgs.asciidoc-full
|
||||
|
|
Loading…
Reference in a new issue