nix-conf/packages/opennic-dns-root-data/default.nix
2023-03-06 21:47:45 +01:00

15 lines
415 B
Nix

{ stdenv, lib, dns }:
stdenv.mkDerivation {
pname = "opennic-dns-root-data";
buildCommand = ''
mkdir $out
echo "${dns.lib.toString "example.com" (import ./geek.nix { inherit dns; })}" > $out/geek.zone
echo "${dns.lib.toString "example.com" (import ./geek.nix { inherit dns; })}" > $out/glue.zone
'';
meta = with lib; {
description = "DNS root data including root zone for openic";
};
}