Merge pull request #41043 from obsidiansystems/fix-nix-env-meta
lib: Fix `nix-env -qaP -f . --xml --meta`
This commit is contained in:
commit
2ce9d4f60c
@ -3,6 +3,8 @@ let
|
|||||||
inherit (lib.systems) parse;
|
inherit (lib.systems) parse;
|
||||||
inherit (lib.systems.inspect) patterns;
|
inherit (lib.systems.inspect) patterns;
|
||||||
|
|
||||||
|
abis = lib.mapAttrs (_: abi: builtins.removeAttrs abi [ "assertions" ]) parse.abis;
|
||||||
|
|
||||||
in rec {
|
in rec {
|
||||||
all = [ {} ]; # `{}` matches anything
|
all = [ {} ]; # `{}` matches anything
|
||||||
none = [];
|
none = [];
|
||||||
@ -19,7 +21,7 @@ in rec {
|
|||||||
darwin = [ patterns.isDarwin ];
|
darwin = [ patterns.isDarwin ];
|
||||||
freebsd = [ patterns.isFreeBSD ];
|
freebsd = [ patterns.isFreeBSD ];
|
||||||
# Should be better, but MinGW is unclear, and HURD is bit-rotted.
|
# 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 ];
|
illumos = [ patterns.isSunOS ];
|
||||||
linux = [ patterns.isLinux ];
|
linux = [ patterns.isLinux ];
|
||||||
netbsd = [ patterns.isNetBSD ];
|
netbsd = [ patterns.isNetBSD ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user