writeBashBin
pkgs.writers.writeBashBin
Functor
Docs pulled from | This Revision | about 2 hours ago
Like writeScriptBin but the first line is a shebang to bash
Can be called with or without extra arguments.
Examples
pkgs.writers.writeBashBin
example without arguments
writeBashBin "example" ''
echo hello world
''
pkgs.writers.writeBashBin
example with arguments
writeBashBin "example"
{
makeWrapperArgs = [
"--prefix" "PATH" ":" "${lib.makeBinPath [ pkgs.hello ]}"
];
}
''
hello
''
Noogle detected
This is a Functor
Learn about functors
Implementation
The following is the current implementation of this function.
writeBashBin = name: writeBash "/bin/${name}";