mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
parent
c9b2d77671
commit
fa95878fd3
1 changed files with 7 additions and 2 deletions
|
@ -107,10 +107,15 @@ rec {
|
||||||
writeTextDir = name: text: writeTextFile {inherit name text; destination = "/${name}";};
|
writeTextDir = name: text: writeTextFile {inherit name text; destination = "/${name}";};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Writes a text file to /nix/store/<store path> and marks the file as executable.
|
* Writes a text file to /nix/store/<store path> and marks the file as
|
||||||
|
* executable.
|
||||||
|
*
|
||||||
|
* If passed as a build input, will be used as a setup hook. This makes setup
|
||||||
|
* hooks more efficient to create: you don't need a derivation that copies
|
||||||
|
* them to $out/nix-support/setup-hook, instead you can use the file as is.
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
* # Writes my-file to /nix/store/<store path>/bin/my-file and makes executable
|
* # Writes my-file to /nix/store/<store path> and makes executable
|
||||||
* writeScript "my-file"
|
* writeScript "my-file"
|
||||||
* ''
|
* ''
|
||||||
* Contents of File
|
* Contents of File
|
||||||
|
|
Loading…
Reference in a new issue