Merge pull request #59138 from NixOS/writeTextFile-fix-comment

trivial-builders: Fix outdated comment on writeTextFile
This commit is contained in:
Matthew Bauer 2019-04-07 22:16:45 -04:00 committed by GitHub
commit 33a259a11b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";
* text = ''
* Contents of File * 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";
* text = ''
* Contents of File * Contents of File
* '' * '';
* true * executable = true;
* "/bin/my-file"; * destination = "/bin/my-file";
* true * }
*/ */
writeTextFile = writeTextFile =
{ name # the name of the derivation { name # the name of the derivation