From 8590e39e01f54d9bc43213710f9bbf29b474b9cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Sun, 27 Jul 2014 14:22:48 +0200 Subject: [PATCH] doc: change one occurance of --xml to --json --- doc/meta.xml | 62 +++++++++++++++++++++++++++++----------------------- 1 file changed, 35 insertions(+), 27 deletions(-) diff --git a/doc/meta.xml b/doc/meta.xml index 7740b7c9ed87..f9a27cc98590 100644 --- a/doc/meta.xml +++ b/doc/meta.xml @@ -33,33 +33,41 @@ the package. The value of a meta-attribute must a string. command-line using nix-env: -$ 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 " + ], + "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" + } +} +