summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/gitignore.nix
diff options
context:
space:
mode:
Diffstat (limited to 'krebs/5pkgs/simple/gitignore.nix')
-rw-r--r--krebs/5pkgs/simple/gitignore.nix18
1 files changed, 7 insertions, 11 deletions
diff --git a/krebs/5pkgs/simple/gitignore.nix b/krebs/5pkgs/simple/gitignore.nix
index b3c750a08..b7a9f7eb5 100644
--- a/krebs/5pkgs/simple/gitignore.nix
+++ b/krebs/5pkgs/simple/gitignore.nix
@@ -1,4 +1,4 @@
-{ pkgs }:
+{ pkgs, writeDash }:
/* gitignore - Filter for intentionally untracked lines or blocks of code
@@ -34,13 +34,9 @@ Installation:
[2]: For more information about assigning filters see gitattributes(5).
*/
-pkgs.execBin "gitignore" {
- filename = "${pkgs.gnused}/bin/sed";
- argv = [
- "gitignore"
- /* sed */ ''
- /#gitignore-begin/,/#gitignore-end/d
- /#gitignore/d
- ''
- ];
-}
+writeDash "gitignore" ''
+ exec ${pkgs.gnused}/bin/sed '
+ /#gitignore-begin/,/#gitignore-end/d
+ /#gitignore/d
+ '
+''