mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 23:52:55 +00:00
build-support: Add writeTextDir
This `writeTextFile` based helper function is especially usefull for writing a bunch of configuration files to root of the output folder
This commit is contained in:
parent
a1a167bc8b
commit
7c2d00aefd
@ -33,6 +33,7 @@ rec {
|
|||||||
|
|
||||||
# Shorthands for `writeTextFile'.
|
# Shorthands for `writeTextFile'.
|
||||||
writeText = name: text: writeTextFile {inherit name text;};
|
writeText = name: text: writeTextFile {inherit name text;};
|
||||||
|
writeTextDir = name: text: writeTextFile {inherit name text; destination = "/${name}";};
|
||||||
writeScript = name: text: writeTextFile {inherit name text; executable = true;};
|
writeScript = name: text: writeTextFile {inherit name text; executable = true;};
|
||||||
writeScriptBin = name: text: writeTextFile {inherit name text; executable = true; destination = "/bin/${name}";};
|
writeScriptBin = name: text: writeTextFile {inherit name text; executable = true; destination = "/bin/${name}";};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user