aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-09-29 23:15:43 +0200
committerlassulus <lassulus@lassul.us>2018-09-29 23:15:43 +0200
commit4dbef48565b4fe695b549d6df8c6b249d18845f6 (patch)
treed583f67b31c64041c80f449428e7626ee19f72ad
parent913e7b41bb3cb562d6224e30094e8123f09b366f (diff)
pkgs write{Deploy,Test}: pass force to populate
-rw-r--r--pkgs/krops/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/krops/default.nix b/pkgs/krops/default.nix
index 2d3395d..0f32ae1 100644
--- a/pkgs/krops/default.nix
+++ b/pkgs/krops/default.nix
@@ -16,22 +16,22 @@ in
];
};
- writeDeploy = name: { source, target }: let
+ writeDeploy = name: { force ? false, source, target }: let
target' = lib.mkTarget target;
in
writeDash name ''
set -efu
- ${populate { inherit source; target = target'; }}
+ ${populate { inherit force source; target = target'; }}
${rebuild target'}
'';
- writeTest = name: { source, target }: let
+ writeTest = name: { force ? false, source, target }: let
target' = lib.mkTarget target;
in
assert lib.isLocalTarget target';
writeDash name ''
set -efu
- ${populate { inherit source; target = target'; }}
+ ${populate { inherit force source; target = target'; }}
${nix}/bin/nix-build \
-A system \
-I ${target'.path} \