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

#1

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

pkgs.writeScriptBin

Ryan

2 Likes