From 566830bb18e1ca74dad4152b9d156bc9c02e70e7 Mon Sep 17 00:00:00 2001 From: jeschli Date: Sat, 27 Oct 2018 16:39:12 +0200 Subject: writeDash: documentation --- pkgs/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/default.nix b/pkgs/default.nix index 4cc0df3..2ffd414 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -219,6 +219,12 @@ pkgs: oldpkgs: { strip --strip-unneeded "$exe" ''; + # Like writeScript but the first line is a shebang to dash + # + # Example: + # writeDash "example" '' + # echo hello world + # '' writeDash = pkgs.makeScriptWriter { interpreter = "${pkgs.dash}/bin/dash"; }; -- cgit v1.2.3