From 4f1249e46fb816cfd299ae27385a63746f914c3f Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 23 Nov 2021 16:31:17 +0300 Subject: refactor(readTree): Move 'drvTargets' into readTree This function is also generally useful for readTree consumers that have the concept of subtargets. Change-Id: Ic7fc03380dec6953fb288763a28e50ab3624d233 --- ops/dns/default.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ops') diff --git a/ops/dns/default.nix b/ops/dns/default.nix index 1007be08f783..136a4c58dca7 100644 --- a/ops/dns/default.nix +++ b/ops/dns/default.nix @@ -2,15 +2,11 @@ { depot, pkgs, ... }: let - inherit (depot.nix.utils) - drvTargets - ; - checkZone = zone: file: pkgs.runCommandNoCC "${zone}-check" {} '' ${pkgs.bind}/bin/named-checkzone -i local ${zone} ${file} | tee $out ''; -in drvTargets { +in depot.nix.readTree.drvTargets { nixery-dev = checkZone "nixery.dev" ./nixery.dev.zone; tvl-fyi = checkZone "tvl.fyi" ./tvl.fyi.zone; tvl-su = checkZone "tvl.su" ./tvl.su.zone; -- cgit 1.4.1