Shell scripts/zh: Difference between revisions

Ardenet (talk | contribs)
Created page with "== 外部 builder.sh 脚本 =="
Ardenet (talk | contribs)
Created page with "函数 <code>writeShellScript</code> 可用于向 Nix 表达式中添加 Shell 脚本。"
Tags: Mobile edit Mobile web edit
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>


<div lang="en" dir="ltr" class="mw-content-ltr">
函数 <code>writeShellScript</code> 可用于向 Nix 表达式中添加 Shell 脚本。
The package <code>writeShellScript</code> can be used to add shell scripts to Nix expressions.
</div>


<syntaxHighlight lang="nix">
<syntaxHighlight lang="nix">
Line 23: Line 21:
== 外部 builder.sh 脚本 ==
== 外部 builder.sh 脚本 ==


<div lang="en" dir="ltr" class="mw-content-ltr">
较长的 Bash 脚本通常会保存为外部脚本文件,并在 Nix 中调用:
Longer Bash scripts are usually stored as external script files, and called from Nix:
</div>


{{file|default.nix|nix|3=
{{file|default.nix|nix|3=