trivial-builders: Fix outdated comment on writeTextFile
This commit is contained in:
parent
cb93ae7eb3
commit
c4c2aa6586
@ -32,19 +32,23 @@ rec {
|
|||||||
*
|
*
|
||||||
* Examples:
|
* Examples:
|
||||||
* # Writes my-file to /nix/store/<store path>
|
* # Writes my-file to /nix/store/<store path>
|
||||||
* writeTextFile "my-file"
|
* writeTextFile {
|
||||||
* ''
|
* name = "my-file";
|
||||||
* Contents of File
|
* text = ''
|
||||||
|
* Contents of File
|
||||||
* '';
|
* '';
|
||||||
|
* }
|
||||||
|
* # See also the `writeText` helper function below.
|
||||||
*
|
*
|
||||||
* # Writes executable my-file to /nix/store/<store path>/bin/my-file
|
* # Writes executable my-file to /nix/store/<store path>/bin/my-file
|
||||||
* writeTextFile "my-file"
|
* writeTextFile {
|
||||||
* ''
|
* name = "my-file";
|
||||||
* Contents of File
|
* text = ''
|
||||||
* ''
|
* Contents of File
|
||||||
* true
|
* '';
|
||||||
* "/bin/my-file";
|
* executable = true;
|
||||||
* true
|
* destination = "/bin/my-file";
|
||||||
|
* }
|
||||||
*/
|
*/
|
||||||
writeTextFile =
|
writeTextFile =
|
||||||
{ name # the name of the derivation
|
{ name # the name of the derivation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user