Merge branch 'pkgs/build-support/writeTextDir' of git://github.com/offlinehacker/nixpkgs

build-support: Add writeTextDir
This commit is contained in:
Shea Levy 2014-03-23 20:50:14 -04:00
commit e07b58fee3

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