How to pkgs.writeText/writeFile to create an executable script?

I want to create a file with the given text, set the file’s executable flag to enabled, then return the path.

How can I do this?

2 Likes

pkgs.writeScriptBin

Ryan

4 Likes