diff options
author | Peter Simons <simons@cryp.to> | 2016-08-19 11:08:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-19 11:08:53 +0200 |
commit | 36f2dc56493757342e0c86c3df6431bce77eed31 (patch) | |
tree | 89b3dd788105284829bcdda9e1f57ace3b2362bf /doc | |
parent | d717d0dfb1d4aac3b0fd04ece91720598ea509b0 (diff) | |
parent | b1abc2c8d6aa3cb5811e18ef14a587f7d4ceb1c2 (diff) | |
download | nixlib-36f2dc56493757342e0c86c3df6431bce77eed31.tar nixlib-36f2dc56493757342e0c86c3df6431bce77eed31.tar.gz nixlib-36f2dc56493757342e0c86c3df6431bce77eed31.tar.bz2 nixlib-36f2dc56493757342e0c86c3df6431bce77eed31.tar.lz nixlib-36f2dc56493757342e0c86c3df6431bce77eed31.tar.xz nixlib-36f2dc56493757342e0c86c3df6431bce77eed31.tar.zst nixlib-36f2dc56493757342e0c86c3df6431bce77eed31.zip |
Merge pull request #17549 from ericsagnes/nixpkgs-doc/patches
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> |