lib/systems: inherit from lib.systems.parse in lib/systems/inspect.nix

This commit is contained in:
Philip Taron 2024-03-12 08:41:59 -07:00
parent 123a2f0fcc
commit af634f14ba
No known key found for this signature in database

View file

@ -1,10 +1,19 @@
{ lib }:
with lib.systems.parse;
with lib.attrsets;
with lib.lists;
let abis_ = abis; in
let abis = lib.mapAttrs (_: abi: builtins.removeAttrs abi [ "assertions" ]) abis_; in
let
inherit (lib.systems.parse)
kernels
kernelFamilies
significantBytes
cpuTypes
execFormats
;
abis = lib.mapAttrs (_: abi: builtins.removeAttrs abi [ "assertions" ]) lib.systems.parse.abis;
in
rec {
# these patterns are to be matched against {host,build,target}Platform.parsed