Strip indentation from programlistings

+31 -25
+31 -25
doc/coding-conventions.xml
··· 620 fetchers from <literal>pkgs/build-support/</literal>. As an example going 621 from bad to good: 622 <itemizedlist> 623 - <listitem><para>Uses <literal>git://</literal> which won't be proxied. 624 - <programlisting> 625 - src = fetchgit { 626 - url = "git://github.com/NixOS/nix.git"; 627 - rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae"; 628 - sha256 = "1cw5fszffl5pkpa6s6wjnkiv6lm5k618s32sp60kvmvpy7a2v9kg"; 629 - } 630 - </programlisting></para> 631 </listitem> 632 - <listitem><para>This is ok, but an archive fetch will still be faster. 633 - <programlisting> 634 - src = fetchgit { 635 - url = "https://github.com/NixOS/nix.git"; 636 - rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae"; 637 - sha256 = "1cw5fszffl5pkpa6s6wjnkiv6lm5k618s32sp60kvmvpy7a2v9kg"; 638 - } 639 - </programlisting></para> 640 </listitem> 641 - <listitem><para>Fetches a snapshot archive and you get the rev you want. 642 - <programlisting> 643 - src = fetchFromGitHub { 644 - owner = "NixOS"; 645 - repo = "nix"; 646 - rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae"; 647 - sha256 = "04yri911rj9j19qqqn6m82266fl05pz98inasni0vxr1cf1gdgv9"; 648 - } 649 - </programlisting></para> 650 </listitem> 651 </itemizedlist> 652 </para>
··· 620 fetchers from <literal>pkgs/build-support/</literal>. As an example going 621 from bad to good: 622 <itemizedlist> 623 + <listitem> 624 + <para>Uses <literal>git://</literal> which won't be proxied. 625 + <programlisting> 626 + src = fetchgit { 627 + url = "git://github.com/NixOS/nix.git"; 628 + rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae"; 629 + sha256 = "1cw5fszffl5pkpa6s6wjnkiv6lm5k618s32sp60kvmvpy7a2v9kg"; 630 + } 631 + </programlisting> 632 + </para> 633 </listitem> 634 + <listitem> 635 + <para>This is ok, but an archive fetch will still be faster. 636 + <programlisting> 637 + src = fetchgit { 638 + url = "https://github.com/NixOS/nix.git"; 639 + rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae"; 640 + sha256 = "1cw5fszffl5pkpa6s6wjnkiv6lm5k618s32sp60kvmvpy7a2v9kg"; 641 + } 642 + </programlisting> 643 + </para> 644 </listitem> 645 + <listitem> 646 + <para>Fetches a snapshot archive and you get the rev you want. 647 + <programlisting> 648 + src = fetchFromGitHub { 649 + owner = "NixOS"; 650 + repo = "nix"; 651 + rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae"; 652 + sha256 = "04yri911rj9j19qqqn6m82266fl05pz98inasni0vxr1cf1gdgv9"; 653 + } 654 + </programlisting> 655 + </para> 656 </listitem> 657 </itemizedlist> 658 </para>