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:
commit
6f9e091269
|
@ -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