git.iko.soy/typeable/nixpkgs
on master help sign in
Strip indentation from programlistings
commit07b212b09dc15c983df28b91fd1323b172ac07c4 authorEelco Dolstra <eelco.dolstra@logicblox.com> dateWed 3 Jun 2015, 17:04 (12 years ago) parent35ff30c
1 file changed+31−25
doc/coding-conventions.xml+31−25
doc/coding-conventions.xml+31−25
@@ -620,33 +620,39 @@ evaluate correctly.</para>
620620 fetchers from <literal>pkgs/build-support/</literal>. As an example going
621621 from bad to good:
622622 <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>
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>
631633 </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>
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>
640644 </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>
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>
650656 </listitem>
651657 </itemizedlist>
652658 </para>