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

Merge pull request #209 from mistydemeo/fix_asciidoc_name

Pill 17: fix asciidoc-full name
This commit is contained in:
Sergei Trofimovich 2023-03-31 22:05:32 +01:00 committed by GitHub
commit 6f9e091269
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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