From 4dbef48565b4fe695b549d6df8c6b249d18845f6 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sat, 29 Sep 2018 23:15:43 +0200 Subject: [PATCH] pkgs write{Deploy,Test}: pass force to populate --- pkgs/krops/default.nix | 8 ++++---- 1 file 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} \