From df15dea9034915d85a31c40126d4180306371dc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Wed, 1 Oct 2025 15:36:01 +0800 Subject: [PATCH] treewide: remove definition of genAttrs' It was merged and backported upstream --- nix/configurations/vanadium/nixos/display.nix | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/nix/configurations/vanadium/nixos/display.nix b/nix/configurations/vanadium/nixos/display.nix index d8cabb5d..7f6e64c1 100644 --- a/nix/configurations/vanadium/nixos/display.nix +++ b/nix/configurations/vanadium/nixos/display.nix @@ -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))) ]; }; }