git.iko.soy/typeable/nixpkgs
on master help sign in
doc: use "with stdenv.lib" in meta
commit3dd635042023fb3dfbd88cdf1a915deb42ccac6f authorDmitry Kalinkin <dmitry.kalinkin@gmail.com> dateTue 22 May 2018, 13:25 (9 years ago) parentd239113
2 files changed+8−8
doc/meta.xml+4−4 pkgs/applications/misc/hello/default.nix+4−4
doc/meta.xml+4−4
@@ -8,16 +8,16 @@
88 and so on. For instance, the GNU Hello package has a <varname>meta</varname>
99 declaration like this:
1010<programlisting>
11−meta = {
11+meta = with stdenv.lib; {
1212 description = "A program that produces a familiar, friendly greeting";
1313 longDescription = ''
1414 GNU Hello is a program that prints "Hello, world!" when you run it.
1515 It is fully customizable.
1616 '';
1717 homepage = http://www.gnu.org/software/hello/manual/;
18− license = stdenv.lib.licenses.gpl3Plus;
19− maintainers = [ stdenv.lib.maintainers.eelco ];
20− platforms = stdenv.lib.platforms.all;
18+ license = licenses.gpl3Plus;
19+ maintainers = [ maintainers.eelco ];
20+ platforms = platforms.all;
2121};
2222</programlisting>
2323 </para>
pkgs/applications/misc/hello/default.nix+4−4
@@ -10,15 +10,15 @@ stdenv.mkDerivation rec {
1010
1111 doCheck = true;
1212
13− meta = {
13+ meta = with stdenv.lib; {
1414 description = "A program that produces a familiar, friendly greeting";
1515 longDescription = ''
1616 GNU Hello is a program that prints "Hello, world!" when you run it.
1717 It is fully customizable.
1818 '';
1919 homepage = http://www.gnu.org/software/hello/manual/;
20− license = stdenv.lib.licenses.gpl3Plus;
21− maintainers = [ stdenv.lib.maintainers.eelco ];
22− platforms = stdenv.lib.platforms.all;
20+ license = licenses.gpl3Plus;
21+ maintainers = [ maintainers.eelco ];
22+ platforms = platforms.all;
2323 };
2424}