doc: use "with stdenv.lib" in meta

This commit is contained in:
Dmitry Kalinkin 2018-05-22 13:25:09 -04:00
parent d239113bb0
commit 3dd6350420
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333
2 changed files with 8 additions and 8 deletions

View File

@ -8,16 +8,16 @@
and so on. For instance, the GNU Hello package has a <varname>meta</varname> and so on. For instance, the GNU Hello package has a <varname>meta</varname>
declaration like this: declaration like this:
<programlisting> <programlisting>
meta = { meta = with stdenv.lib; {
description = "A program that produces a familiar, friendly greeting"; description = "A program that produces a familiar, friendly greeting";
longDescription = '' longDescription = ''
GNU Hello is a program that prints "Hello, world!" when you run it. GNU Hello is a program that prints "Hello, world!" when you run it.
It is fully customizable. It is fully customizable.
''; '';
homepage = http://www.gnu.org/software/hello/manual/; homepage = http://www.gnu.org/software/hello/manual/;
license = stdenv.lib.licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = [ stdenv.lib.maintainers.eelco ]; maintainers = [ maintainers.eelco ];
platforms = stdenv.lib.platforms.all; platforms = platforms.all;
}; };
</programlisting> </programlisting>
</para> </para>

View File

@ -10,15 +10,15 @@ stdenv.mkDerivation rec {
doCheck = true; doCheck = true;
meta = { meta = with stdenv.lib; {
description = "A program that produces a familiar, friendly greeting"; description = "A program that produces a familiar, friendly greeting";
longDescription = '' longDescription = ''
GNU Hello is a program that prints "Hello, world!" when you run it. GNU Hello is a program that prints "Hello, world!" when you run it.
It is fully customizable. It is fully customizable.
''; '';
homepage = http://www.gnu.org/software/hello/manual/; homepage = http://www.gnu.org/software/hello/manual/;
license = stdenv.lib.licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = [ stdenv.lib.maintainers.eelco ]; maintainers = [ maintainers.eelco ];
platforms = stdenv.lib.platforms.all; platforms = platforms.all;
}; };
} }