writeShellScriptBin
pkgs.writeShellScriptBin
Docs pulled from | This Revision | 8 minutes ago
Noogle detected
Implementation
The following is the current implementation of this function.
writeShellScriptBin = name: text:
writeTextFile {
inherit name;
executable = true;
destination = "/bin/${name}";
text = ''
#!${runtimeShell}
${text}
'';
checkPhase = ''
${stdenv.shellDryRun} "$target"
'';
meta.mainProgram = name;
};