From be1f02c1a633f18696d15827201d3040c05ac1f0 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 27 Aug 2023 20:53:58 +0200 Subject: Perf(flake/packages/nvim): Use list merge feature of the merge function --- flake/packages/default.nix | 2 +- flake/packages/merge.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'flake') diff --git a/flake/packages/default.nix b/flake/packages/default.nix index 27d52207..80159a80 100644 --- a/flake/packages/default.nix +++ b/flake/packages/default.nix @@ -29,7 +29,7 @@ config = value.config.home-manager.users.soispha; }; - merge_attrs = list_of_attrs: builtins.foldl' (x: y: merge [x y]) {} list_of_attrs; + merge_attrs = list_of_attrs: merge list_of_attrs; resolve_imports = attrs: merge_attrs (builtins.map (v: import v build_args) attrs.imports); diff --git a/flake/packages/merge.nix b/flake/packages/merge.nix index 8c8ed134..43161ba0 100644 --- a/flake/packages/merge.nix +++ b/flake/packages/merge.nix @@ -62,7 +62,7 @@ ## Prepared tests tests = { - tests = []; # Uncomment to actually run the tests + tests = []; # Comment to actually run the tests test_strings = { expr = merge [a b c]; expected = {a = "This is some\nexample text\n(which is nice)";}; -- cgit 1.4.1