Loading lib/default.nix +1 −0 Original line number Diff line number Diff line Loading @@ -303,6 +303,7 @@ let elem elemAt isList concatAttrValues ; inherit (self.strings) concatStrings Loading lib/lists.nix +23 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ let id warn ; inherit (lib.attrsets) mapAttrs attrNames; inherit (lib.attrsets) mapAttrs attrNames attrValues; inherit (lib) max; in rec { Loading Loading @@ -1997,4 +1997,26 @@ rec { */ mutuallyExclusive = a: b: length a == 0 || !(any (x: elem x a) b); /** Concatenate all attributes of an attribute set. This assumes that every attribute of the set is a list. # Inputs `set` : Attribute set with attributes that are lists # Examples :::{.example} ## `lib.concatAttrValues` usage example ```nix concatAttrValues { a = [ 1 2 ]; b = [ 3 ]; } => [ 1 2 3 ] ``` ::: */ concatAttrValues = set: concatLists (attrValues set); } pkgs/applications/networking/instant-messengers/pantalaimon/default.nix +1 −1 Original line number Diff line number Diff line Loading @@ -65,7 +65,7 @@ python3Packages.buildPythonApplication rec { pytest-aiohttp pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies); ++ lib.concatAttrValues optional-dependencies; nativeBuildInputs = lib.optionals enableDbusUi [ wrapGAppsHook3 Loading pkgs/by-name/al/alpaca/package.nix +1 −1 Original line number Diff line number Diff line Loading @@ -96,7 +96,7 @@ pythonPackages.buildPythonApplication rec { gst-python opencv4 ] ++ lib.flatten (builtins.attrValues optional-dependencies); ++ lib.concatAttrValues optional-dependencies; optional-dependencies = with pythonPackages; { speech-to-text = [ Loading pkgs/by-name/ca/calibre-web/package.nix +1 −1 Original line number Diff line number Diff line Loading @@ -136,7 +136,7 @@ python3Packages.buildPythonApplication rec { "unidecode" ]; nativeCheckInputs = lib.flatten (lib.attrValues optional-dependencies); nativeCheckInputs = lib.concatAttrValues optional-dependencies; pythonImportsCheck = [ "calibreweb" ]; Loading Loading
lib/default.nix +1 −0 Original line number Diff line number Diff line Loading @@ -303,6 +303,7 @@ let elem elemAt isList concatAttrValues ; inherit (self.strings) concatStrings Loading
lib/lists.nix +23 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ let id warn ; inherit (lib.attrsets) mapAttrs attrNames; inherit (lib.attrsets) mapAttrs attrNames attrValues; inherit (lib) max; in rec { Loading Loading @@ -1997,4 +1997,26 @@ rec { */ mutuallyExclusive = a: b: length a == 0 || !(any (x: elem x a) b); /** Concatenate all attributes of an attribute set. This assumes that every attribute of the set is a list. # Inputs `set` : Attribute set with attributes that are lists # Examples :::{.example} ## `lib.concatAttrValues` usage example ```nix concatAttrValues { a = [ 1 2 ]; b = [ 3 ]; } => [ 1 2 3 ] ``` ::: */ concatAttrValues = set: concatLists (attrValues set); }
pkgs/applications/networking/instant-messengers/pantalaimon/default.nix +1 −1 Original line number Diff line number Diff line Loading @@ -65,7 +65,7 @@ python3Packages.buildPythonApplication rec { pytest-aiohttp pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies); ++ lib.concatAttrValues optional-dependencies; nativeBuildInputs = lib.optionals enableDbusUi [ wrapGAppsHook3 Loading
pkgs/by-name/al/alpaca/package.nix +1 −1 Original line number Diff line number Diff line Loading @@ -96,7 +96,7 @@ pythonPackages.buildPythonApplication rec { gst-python opencv4 ] ++ lib.flatten (builtins.attrValues optional-dependencies); ++ lib.concatAttrValues optional-dependencies; optional-dependencies = with pythonPackages; { speech-to-text = [ Loading
pkgs/by-name/ca/calibre-web/package.nix +1 −1 Original line number Diff line number Diff line Loading @@ -136,7 +136,7 @@ python3Packages.buildPythonApplication rec { "unidecode" ]; nativeCheckInputs = lib.flatten (lib.attrValues optional-dependencies); nativeCheckInputs = lib.concatAttrValues optional-dependencies; pythonImportsCheck = [ "calibreweb" ]; Loading