diff options
author | Bernardo Meurer <bernardo@meurer.org> | 2021-11-08 09:28:58 -0800 |
---|---|---|
committer | Bernardo Meurer <bernardo@meurer.org> | 2021-11-08 09:33:40 -0800 |
commit | ba7b7357ac48c98d367c1aadf2d5124914a47a6a (patch) | |
tree | 84a3f41fb8ac6b832e48d39064a562865b554229 /pkgs/build-support/trivial-builders.nix | |
parent | d8ec0eeab7c631f9700d2fc66063f9fa06dbf693 (diff) |
writeTextFile: allow passing extra derivationArgs
Diffstat (limited to 'pkgs/build-support/trivial-builders.nix')
-rw-r--r-- | pkgs/build-support/trivial-builders.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/build-support/trivial-builders.nix b/pkgs/build-support/trivial-builders.nix index beea1250b5f32..090986dda5f89 100644 --- a/pkgs/build-support/trivial-builders.nix +++ b/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; |