summaryrefslogtreecommitdiff
path: root/pkgs/static/gitignore
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/static/gitignore')
-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
+ )
+ }
'';
}