From d51f353cb3ca667957e05699e4f250c9cd4d0882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 17 Feb 2020 17:40:50 +0000 Subject: use writers from nixpkgs This makes the evaluation of krops pure (no import from derivation) and makes it faster since the fetchGit result might be garbage collected. --- pkgs/populate/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkgs/populate/default.nix') diff --git a/pkgs/populate/default.nix b/pkgs/populate/default.nix index acabc02..736376e 100644 --- a/pkgs/populate/default.nix +++ b/pkgs/populate/default.nix @@ -1,7 +1,7 @@ with import ../../lib; with shell; -{ coreutils, dash, findutils, git, jq, openssh, pass, rsync, writeDash }: +{ coreutils, dash, findutils, git, jq, openssh, pass, rsync, writers }: let check = { force, target }: let @@ -145,7 +145,7 @@ let populate = target: name: source: let source' = source.${source.type}; target' = target // { path = "${target.path}/${name}"; }; - in writeDash "populate.${target'.host}.${name}" '' + in writers.writeDash "populate.${target'.host}.${name}" '' set -efu ${pop.${source.type} target' source'} ''; @@ -196,7 +196,7 @@ let in { backup ? false, force ? false, source, target }: -writeDash "populate.${target.host}" '' +writers.writeDash "populate.${target.host}" '' set -efu ${check { inherit force target; }} set -x -- cgit v1.2.3