summaryrefslogtreecommitdiff
path: root/pkgs/static/gitignore/default.nix
diff options
context:
space:
mode:
authoraristote <quentin.aristote@irif.fr>2025-07-29 15:25:11 +0200
committeraristote <quentin.aristote@irif.fr>2025-07-29 15:25:11 +0200
commitfc019d789523ce5f89436b8dbc458cf3b79abf43 (patch)
treeec56fd1b1ed9fc75096c0b09db48a152975e4d53 /pkgs/static/gitignore/default.nix
parenta3d19bc509d9f39fb41256cd55d2bd7706de202f (diff)
reformat everything with nixfmt
Diffstat (limited to 'pkgs/static/gitignore/default.nix')
-rw-r--r--pkgs/static/gitignore/default.nix16
1 files changed, 12 insertions, 4 deletions
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
+ )
+ }
'';
}