diff options
author | Domen Kožar <domen@dev.si> | 2014-07-27 14:22:48 +0200 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2014-07-27 14:22:58 +0200 |
commit | 8590e39e01f54d9bc43213710f9bbf29b474b9cd (patch) | |
tree | b01b70d18525d40b24e55ed846d7fb9e71c14c86 /doc | |
parent | 0cb54d44ca4cb86a07409cc4aeef5048d7aff197 (diff) |
doc: change one occurance of --xml to --json
Diffstat (limited to 'doc')
-rw-r--r-- | doc/meta.xml | 62 |
1 files changed, 35 insertions, 27 deletions
diff --git a/doc/meta.xml b/doc/meta.xml index 7740b7c9ed875..f9a27cc98590e 100644 --- a/doc/meta.xml +++ b/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> |