Skip to content

Commit

Permalink
lib: Fix nix-env -qaP -f . --xml --meta
Browse files Browse the repository at this point in the history
The function value cannot be serialized so nix-env was mad. Turns out we can
just remove it like we do in `lib/systems/inspect.nix`.
  • Loading branch information
Ericson2314 committed May 24, 2018
1 parent c0e0c70 commit d437f2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/systems/for-meta.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ let
inherit (lib.systems) parse;
inherit (lib.systems.inspect) patterns;

abis = lib.mapAttrs (_: abi: builtins.removeAttrs abi [ "assertions" ]) parse.abis;

in rec {
all = [ {} ]; # `{}` matches anything
none = [];
Expand All @@ -19,7 +21,7 @@ in rec {
darwin = [ patterns.isDarwin ];
freebsd = [ patterns.isFreeBSD ];
# Should be better, but MinGW is unclear, and HURD is bit-rotted.
gnu = [ { kernel = parse.kernels.linux; abi = parse.abis.gnu; } ];
gnu = [ { kernel = parse.kernels.linux; abi = abis.gnu; } ];
illumos = [ patterns.isSunOS ];
linux = [ patterns.isLinux ];
netbsd = [ patterns.isNetBSD ];
Expand Down

0 comments on commit d437f2c

Please sign in to comment.