{ nushell, writeTextFile, ... }: name: text: let writeNuShellScriptBin = writeTextFile { inherit name; executable = true; destination = "/bin/${name}"; text = '' #!${nushell}/bin/nu ${text} ''; meta.mainProgram = name; }; in writeNuShellScriptBin