mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 19:51:17 +00:00
doc: change one occurance of --xml to --json
This commit is contained in:
parent
0cb54d44ca
commit
8590e39e01
62
doc/meta.xml
62
doc/meta.xml
|
@ -33,33 +33,41 @@ the package. The value of a meta-attribute must a string.</para>
|
|||
command-line using <command>nix-env</command>:
|
||||
|
||||
<screen>
|
||||
$ nix-env -qa hello --meta --xml
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<items>
|
||||
<item attrPath="nixos.pkgs.hello" name="hello-2.9" system="x86_64-linux">
|
||||
<meta name="description" type="string" value="A program that produces a familiar, friendly greeting" />
|
||||
<meta name="homepage" type="string" value="http://www.gnu.org/software/hello/manual/" />
|
||||
<meta name="license" type="string" value="GPLv3+" />
|
||||
<meta name="longDescription" type="string" value="GNU Hello is a program that prints &quot;Hello, world!&quot; when you run it.&#xA;It is fully customizable.&#xA;" />
|
||||
<meta name="maintainers" type="strings">
|
||||
<string value="Ludovic Courtès &lt;ludo@gnu.org&gt;" />
|
||||
</meta>
|
||||
<meta name="platforms" type="strings">
|
||||
<string value="i686-linux" />
|
||||
<string value="x86_64-linux" />
|
||||
<string value="armv5tel-linux" />
|
||||
<string value="armv7l-linux" />
|
||||
<string value="mips64el-linux" />
|
||||
<string value="x86_64-darwin" />
|
||||
<string value="i686-cygwin" />
|
||||
<string value="i686-freebsd" />
|
||||
<string value="x86_64-freebsd" />
|
||||
<string value="i686-openbsd" />
|
||||
<string value="x86_64-openbsd" />
|
||||
</meta>
|
||||
<meta name="position" type="string" value="/nix/store/cn8zjjdd9kvmp1p5d21h7ya0cr1jhkk3-nixos-14.10pre44264.12f06b3/nixos/nixpkgs/pkgs/applications/misc/hello/ex-2/default.nix:14" />
|
||||
</item>
|
||||
</items>
|
||||
$ nix-env -qa hello --meta --json
|
||||
{
|
||||
"hello": {
|
||||
"meta": {
|
||||
"description": "A program that produces a familiar, friendly greeting",
|
||||
"homepage": "http://www.gnu.org/software/hello/manual/",
|
||||
"license": {
|
||||
"fullName": "GNU General Public License version 3 or later",
|
||||
"shortName": "GPLv3+",
|
||||
"url": "http://www.fsf.org/licensing/licenses/gpl.html"
|
||||
},
|
||||
"longDescription": "GNU Hello is a program that prints \"Hello, world!\" when you run it.\nIt is fully customizable.\n",
|
||||
"maintainers": [
|
||||
"Ludovic Court\u00e8s <ludo@gnu.org>"
|
||||
],
|
||||
"platforms": [
|
||||
"i686-linux",
|
||||
"x86_64-linux",
|
||||
"armv5tel-linux",
|
||||
"armv7l-linux",
|
||||
"mips64el-linux",
|
||||
"x86_64-darwin",
|
||||
"i686-cygwin",
|
||||
"i686-freebsd",
|
||||
"x86_64-freebsd",
|
||||
"i686-openbsd",
|
||||
"x86_64-openbsd"
|
||||
],
|
||||
"position": "/home/ielectric/dev/nixpkgs/pkgs/applications/misc/hello/ex-2/default.nix:14"
|
||||
},
|
||||
"name": "hello-2.9",
|
||||
"system": "x86_64-linux"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</screen>
|
||||
|
||||
|
|
Loading…
Reference in a new issue