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:
Jaka Hudoklin 2014-03-23 10:03:28 +00:00
parent a1a167bc8b
commit 7c2d00aefd

View File

@ -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}";};