3
0
Fork 0
forked from mirrors/nixpkgs

nixpkgs-doc: add patches to coding conventions

This commit is contained in:
Eric Sagnes 2016-08-06 09:05:23 +09:00
parent 450c866730
commit b1abc2c8d6

View file

@ -659,4 +659,22 @@ src = fetchFromGitHub {
</itemizedlist> </itemizedlist>
</para> </para>
</section> </section>
<section xml:id="sec-patches"><title>Patches</title>
<para>Only patches that are unique to <literal>nixpkgs</literal> should be
included in <literal>nixpkgs</literal> source.</para>
<para>Patches available online should be retrieved using
<literal>fetchpatch</literal>.</para>
<para>
<programlisting>
patches = [
(fetchpatch {
name = "fix-check-for-using-shared-freetype-lib.patch";
url = "http://git.ghostscript.com/?p=ghostpdl.git;a=patch;h=8f5d285";
sha256 = "1f0k043rng7f0rfl9hhb89qzvvksqmkrikmm38p61yfx51l325xr";
})
];
</programlisting>
</para>
</section>
</chapter> </chapter>