depot/third_party/tvl/users/tazjin/dns/default.nix
Default email a291c8690a Project import generated by Copybara.
GitOrigin-RevId: e6e19f3d81a982a62e1bba08f0b4f7fdc21b4ea0
2022-05-19 16:39:52 +02:00

13 lines
400 B
Nix

# Performs simple (local-only) validity checks on DNS zones.
{ depot, pkgs, ... }:
let
checkZone = zone: file: pkgs.runCommandNoCC "${zone}-check" { } ''
${pkgs.bind}/bin/named-checkzone -i local ${zone} ${file} | tee $out
'';
in
depot.nix.readTree.drvTargets {
kontemplate-works = checkZone "kontemplate.works" ./kontemplate.works.zone;
tazj-in = checkZone "tazj.in" ./tazj.in.zone;
}