Skip to content

Instantly share code, notes, and snippets.

@qknight
Created September 12, 2014 13:54
Show Gist options
  • Save qknight/32af5a8556726c22c2b9 to your computer and use it in GitHub Desktop.
Save qknight/32af5a8556726c22c2b9 to your computer and use it in GitHub Desktop.
question: why does nix-env --xml output differ from the --json output?
i think that this might be a bug.
nix-env -f '<nixpkgs>' -qa nix --out-path -A nix --xml
<?xml version='1.0' encoding='utf-8'?>
<items>
<item attrPath="nix" name="nix-1.7" system="x86_64-linux">
<output name="out" path="/nix/store/h9pz2p1nvgvaz46zm7kdpmxbmp78g2dg-nix-1.7" />
</item>
</items>
nix-env -f '<nixpkgs>' -qa nix --out-path -A nix --json
{
"nix": {
"name": "nix-1.7",
"system": "x86_64-linux",
"meta": {
"description": "The Nix Deployment System",
"homepage": "http://nixos.org/",
"license": {
"fullName": "GNU Library General Public License v2 or later",
"shortName": "LGPL-2.0+",
"url": "http://spdx.org/licenses/LGPL-2.0+"
},
"maintainers": ["Eelco Dolstra <eelco.dolstra@logicblox.com>"],
"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": "/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/tools/package-management/nix/default.nix:69"
}
}
} %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment