writeTextFile: allow passing extra derivationArgs

main
Bernardo Meurer 3 years ago
parent d8ec0eeab7
commit ba7b7357ac
No known key found for this signature in database
GPG Key ID: F4C0D53B8D14C246
  1. 3
      pkgs/build-support/trivial-builders.nix

@ -111,9 +111,10 @@ rec {
, executable ? false # run chmod +x ?
, destination ? "" # relative path appended to $out eg "/bin/foo"
, checkPhase ? "" # syntax checks, e.g. for scripts
, meta ? { }
}:
runCommand name
{ inherit text executable checkPhase;
{ inherit text executable checkPhase meta;
passAsFile = [ "text" ];
# Pointless to do this on a remote machine.
preferLocalBuild = true;

Loading…
Cancel
Save