writeFishBin
pkgs.writers.writeFishBin
Functor
Docs pulled from | This Revision | 44 minutes ago
Like writeScriptBin but the first line is a shebang to fish
Can be called with or without extra arguments.
Examples
pkgs.writers.writeFishBin
without arguments
writeFishBin "example" ''
echo hello world
''
pkgs.writers.writeFishBin
with arguments
writeFishBin "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.
writeFishBin = name: writeFish "/bin/${name}";