diff options
author | Eric Sagnes <eric.sagnes@gmail.com> | 2016-08-06 09:05:23 +0900 |
---|---|---|
committer | Eric Sagnes <eric.sagnes@gmail.com> | 2016-08-06 09:05:23 +0900 |
commit | b1abc2c8d6aa3cb5811e18ef14a587f7d4ceb1c2 (patch) | |
tree | 23eca028696f744968d3e340614358ce702ed0b9 /doc | |
parent | 450c866730df749ad928f3e70855ef7231c05a71 (diff) | |
download | nixlib-b1abc2c8d6aa3cb5811e18ef14a587f7d4ceb1c2.tar nixlib-b1abc2c8d6aa3cb5811e18ef14a587f7d4ceb1c2.tar.gz nixlib-b1abc2c8d6aa3cb5811e18ef14a587f7d4ceb1c2.tar.bz2 nixlib-b1abc2c8d6aa3cb5811e18ef14a587f7d4ceb1c2.tar.lz nixlib-b1abc2c8d6aa3cb5811e18ef14a587f7d4ceb1c2.tar.xz nixlib-b1abc2c8d6aa3cb5811e18ef14a587f7d4ceb1c2.tar.zst nixlib-b1abc2c8d6aa3cb5811e18ef14a587f7d4ceb1c2.zip |
nixpkgs-doc: add patches to coding conventions
Diffstat (limited to 'doc')
-rw-r--r-- | doc/coding-conventions.xml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/coding-conventions.xml b/doc/coding-conventions.xml index 8105611f2bac..4348dc8bf720 100644 --- a/doc/coding-conventions.xml +++ b/doc/coding-conventions.xml @@ -659,4 +659,22 @@ src = fetchFromGitHub { </itemizedlist> </para> </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> |