From fc019d789523ce5f89436b8dbc458cf3b79abf43 Mon Sep 17 00:00:00 2001 From: aristote Date: Tue, 29 Jul 2025 15:25:11 +0200 Subject: reformat everything with nixfmt --- pkgs/static/gitignore/default.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'pkgs/static/gitignore/default.nix') diff --git a/pkgs/static/gitignore/default.nix b/pkgs/static/gitignore/default.nix index d97dec5..6ee8649 100644 --- a/pkgs/static/gitignore/default.nix +++ b/pkgs/static/gitignore/default.nix @@ -1,6 +1,6 @@ { - templates ? [], - toUncomment ? [], + templates ? [ ], + toUncomment ? [ ], stdenvNoCC, fetchFromGitHub, lib, @@ -18,12 +18,20 @@ stdenvNoCC.mkDerivation { buildPhase = '' mv {Global,community}/*.gitignore . - for file in ${lib.concatStringsSep " " (builtins.map (name: lib.escapeShellArg "${name}.gitignore") templates)} + for file in ${ + lib.concatStringsSep " " (builtins.map (name: lib.escapeShellArg "${name}.gitignore") templates) + } do echo "### $(basename "$file" .gitignore)" >> $out cat "$file" >> $out echo >> $out done - substituteInPlace $out ${lib.concatStringsSep " " (builtins.map (line: "--replace ${lib.escapeShellArg "# ${line}"} ${lib.escapeShellArg line}") toUncomment)} + substituteInPlace $out ${ + lib.concatStringsSep " " ( + builtins.map ( + line: "--replace ${lib.escapeShellArg "# ${line}"} ${lib.escapeShellArg line}" + ) toUncomment + ) + } ''; } -- cgit v1.2.3