From c4c2aa6586ae6477cab101f19e0316c046110baf Mon Sep 17 00:00:00 2001 From: Niklas Hambüchen Date: Mon, 8 Apr 2019 00:38:13 +0200 Subject: trivial-builders: Fix outdated comment on writeTextFile --- pkgs/build-support/trivial-builders.nix | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'pkgs') diff --git a/pkgs/build-support/trivial-builders.nix b/pkgs/build-support/trivial-builders.nix index ab83b73c545..592af3fe4f2 100644 --- a/pkgs/build-support/trivial-builders.nix +++ b/pkgs/build-support/trivial-builders.nix @@ -32,19 +32,23 @@ rec { * * Examples: * # Writes my-file to /nix/store/ - * 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//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 -- cgit 1.4.1