treewide: remove definition of genAttrs'

It was merged and backported upstream
This commit is contained in:
Primrose 2025-10-01 15:36:01 +08:00
parent 2838449e90
commit df15dea903
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -33,12 +33,6 @@
};
profiles = let
# TODO: merge when upstream is merged
# https://github.com/NixOS/nixpkgs/pull/436434
#
# Generate an attribute set by mapping a function over a list of attribute names.
# It allows setting the name of the attribute.
genAttrs' = xs: func: builtins.listToAttrs (map func xs);
singleton = k: v: {${k} = v;};
fingerprints = {
@ -139,7 +133,7 @@
in
lib.mkMerge [
{default = frameworkBuiltin;}
(genAttrs' devices.extern (name: lib.nameValuePair "asus-${name}" (mkAsusProfile name)))
(lib.genAttrs' devices.extern (name: lib.nameValuePair "asus-${name}" (mkAsusProfile name)))
];
};
}