mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
treewide: remove definition of genAttrs'
It was merged and backported upstream
This commit is contained in:
parent
2838449e90
commit
df15dea903
1 changed files with 1 additions and 7 deletions
|
|
@ -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)))
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue