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