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'.
|
||||
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;};
|
||||
writeScriptBin = name: text: writeTextFile {inherit name text; executable = true; destination = "/bin/${name}";};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user