summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-06-03 17:04:26 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-06-03 17:05:14 +0200
commit07b212b09dc15c983df28b91fd1323b172ac07c4 (patch)
tree67d978436cac7728ba4af0da98642eae66d7060b /doc
parent35ff30c73fa312990d88a74aa5951094ecd1b461 (diff)
downloadnixpkgs-07b212b09dc15c983df28b91fd1323b172ac07c4.tar
nixpkgs-07b212b09dc15c983df28b91fd1323b172ac07c4.tar.gz
nixpkgs-07b212b09dc15c983df28b91fd1323b172ac07c4.tar.bz2
nixpkgs-07b212b09dc15c983df28b91fd1323b172ac07c4.tar.lz
nixpkgs-07b212b09dc15c983df28b91fd1323b172ac07c4.tar.xz
nixpkgs-07b212b09dc15c983df28b91fd1323b172ac07c4.tar.zst
nixpkgs-07b212b09dc15c983df28b91fd1323b172ac07c4.zip
Strip indentation from programlistings
Diffstat (limited to 'doc')
-rw-r--r--doc/coding-conventions.xml56
1 files changed, 31 insertions, 25 deletions
diff --git a/doc/coding-conventions.xml b/doc/coding-conventions.xml
index b041a73d818..4967295db08 100644
--- a/doc/coding-conventions.xml
+++ b/doc/coding-conventions.xml
@@ -620,33 +620,39 @@ evaluate correctly.</para>
     fetchers from <literal>pkgs/build-support/</literal>. As an example going
     from bad to good:
     <itemizedlist>
-      <listitem><para>Uses <literal>git://</literal> which won't be proxied.
-        <programlisting>
-          src = fetchgit {
-            url = "git://github.com/NixOS/nix.git";
-            rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae";
-            sha256 = "1cw5fszffl5pkpa6s6wjnkiv6lm5k618s32sp60kvmvpy7a2v9kg";
-          }
-        </programlisting></para>
+      <listitem>
+        <para>Uses <literal>git://</literal> which won't be proxied.
+<programlisting>
+src = fetchgit {
+  url = "git://github.com/NixOS/nix.git";
+  rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae";
+  sha256 = "1cw5fszffl5pkpa6s6wjnkiv6lm5k618s32sp60kvmvpy7a2v9kg";
+}
+</programlisting>
+        </para>
       </listitem>
-      <listitem><para>This is ok, but an archive fetch will still be faster.
-        <programlisting>
-          src = fetchgit {
-            url = "https://github.com/NixOS/nix.git";
-            rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae";
-            sha256 = "1cw5fszffl5pkpa6s6wjnkiv6lm5k618s32sp60kvmvpy7a2v9kg";
-          }
-        </programlisting></para>
+      <listitem>
+        <para>This is ok, but an archive fetch will still be faster.
+<programlisting>
+src = fetchgit {
+  url = "https://github.com/NixOS/nix.git";
+  rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae";
+  sha256 = "1cw5fszffl5pkpa6s6wjnkiv6lm5k618s32sp60kvmvpy7a2v9kg";
+}
+</programlisting>
+        </para>
       </listitem>
-      <listitem><para>Fetches a snapshot archive and you get the rev you want.
-        <programlisting>
-          src = fetchFromGitHub {
-            owner = "NixOS";
-            repo = "nix";
-            rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae";
-            sha256 = "04yri911rj9j19qqqn6m82266fl05pz98inasni0vxr1cf1gdgv9";
-          }
-        </programlisting></para>
+      <listitem>
+        <para>Fetches a snapshot archive and you get the rev you want.
+<programlisting>
+src = fetchFromGitHub {
+  owner = "NixOS";
+  repo = "nix";
+  rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae";
+  sha256 = "04yri911rj9j19qqqn6m82266fl05pz98inasni0vxr1cf1gdgv9";
+}
+</programlisting>
+        </para>
       </listitem>
     </itemizedlist>
   </para>