From a4ab30928bac7add15c77eb34b2b6ddbb4369dcd Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Tue, 28 Apr 2026 13:58:41 -0500 Subject: [PATCH] modules/editorconfig: remove concatLines usage Related https://github.com/NixOS/nixpkgs/pull/506077 and https://github.com/NixOS/nixpkgs/pull/514350 --- modules/editorconfig.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/editorconfig.nix b/modules/editorconfig.nix index 52d4f410..c226640f 100644 --- a/modules/editorconfig.nix +++ b/modules/editorconfig.nix @@ -61,13 +61,13 @@ mkProperty = name: function: '' __editorconfig.properties.${name} = ${function} ''; - propertiesString = lib.concatLines (lib.mapAttrsToList mkProperty cfg.properties); + propertyAssignments = lib.mapAttrsToList mkProperty cfg.properties; in - lib.mkIf (propertiesString != "" && cfg.enable) '' + lib.mkIf (propertyAssignments != [ ] && cfg.enable) '' do local __editorconfig = require('editorconfig') - ${propertiesString} + ${lib.concatStringsSep "\n" propertyAssignments} end ''; };