mirror of
https://github.com/NixOS/nix-pills
synced 2024-11-13 23:27:11 +00:00
commit
55f46cd51d
1 changed files with 2 additions and 2 deletions
|
@ -53,14 +53,14 @@
|
|||
<section>
|
||||
<title>Packaging graphviz</title>
|
||||
<para>
|
||||
We have packaged <package>GNU hello worl</package>, I guess you would like to package something else for creating at least a repository of two projects :-) . I chose <package>graphviz</package>, which uses the standard autotools build system, requires no patching and dependencies are optional.
|
||||
We have packaged <package>GNU hello world</package>, I guess you would like to package something else for creating at least a repository of two projects :-) . I chose <package>graphviz</package>, which uses the standard autotools build system, requires no patching and dependencies are optional.
|
||||
</para>
|
||||
<para>
|
||||
Download <package>graphviz</package> from <link xlink:href="http://pkgs.fedoraproject.org/repo/pkgs/graphviz/graphviz-2.38.0.tar.gz/5b6a829b2ac94efcd5fa3c223ed6d3ae/graphviz-2.38.0.tar.gz">here</link>. The <filename>graphviz.nix</filename> expression is straightforward:
|
||||
</para>
|
||||
<screen><xi:include href="./12/graphviz-derivation.txt" parse="text" /></screen>
|
||||
<para>
|
||||
Build with <command>nix-build graphviz.nix</command> and you will get runnable binaries under <filename>result/bin</filename>. Notice how we did reuse the same <filename>autotools.nix</filename> of <filename>hello.nix.</filename> Let's create a simple png:
|
||||
Build with <command>nix-build graphviz.nix</command> and you will get runnable binaries under <filename>result/bin</filename>. Notice how we reused the same <filename>autotools.nix</filename> of <filename>hello.nix.</filename> Let's create a simple png:
|
||||
</para>
|
||||
<screen><xi:include href="./12/simple-png.txt" parse="text" /></screen>
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue