diff options
author | lassulus <lassulus@lassul.us> | 2019-10-23 16:01:38 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2019-10-23 20:50:41 +0200 |
commit | 2dc172530965ea4f1ead8ff166004c5734daee1f (patch) | |
tree | 1aa8106dfd4fa4ec5935fc4f6c1a4bc732cdb576 | |
parent | 3d59510ac286731d3c8ae60be6922cb3a15f1f3c (diff) |
krops: add writeCommandv1.17.0
-rw-r--r-- | pkgs/krops/default.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/krops/default.nix b/pkgs/krops/default.nix index 85bf88c..13de4ce 100644 --- a/pkgs/krops/default.nix +++ b/pkgs/krops/default.nix @@ -30,6 +30,21 @@ in ]; }; + writeCommand = name: { + command ? (targetPath: "echo ${targetPath}"), + backup ? false, + force ? false, + source, + target + }: let + target' = lib.mkTarget target; + in + writeDash name '' + set -efu + ${populate { inherit backup force source; target = target'; }} + ${remoteCommand target' (command target'.path)} + ''; + writeDeploy = name: { backup ? false, fast ? false, |