rename attrs.listToAttrsIdentity -> attrs.identityAttrsList

the name was easily confusable with listToAttrs which expects {name =
...; value = ...; } structure
This commit is contained in:
Emile Clark-Boman 2025-12-14 09:26:37 +10:00
parent 4722d566ff
commit 3d2f657e9d
2 changed files with 9 additions and 9 deletions

View file

@ -1,4 +1,7 @@
{lists}: let
{
attrs,
lists,
}: let
# === Internal Helper Functions ===
toSystemName = arch: platform: "${arch}-${platform}";
listsToSystemNames = archs: platforms:
@ -9,14 +12,14 @@
];
in rec {
# REF: https://github.com/nix-systems/nix-systems
archs = lists.listToAttrsIdentity [
archs = attrs.identityAttrsList [
"x86_64"
"aarch64"
"riscv64"
];
# REF: https://github.com/nix-systems/nix-systems
platforms = lists.listToAttrsIdentity [
platforms = attrs.identityAttrsList [
"linux"
"darwin"
];