override dnscontrol version
1 file changed, 15 insertions(+), 2 deletions(-)
changed files
M shell.nix → shell.nix
@@ -9,9 +9,22 @@ ), lib ? pkgs.lib, }: let + dnscontrol = pkgs.dnscontrol.overrideAttrs (attrs: { + version = "4.39.0"; + + src = pkgs.fetchFromGitHub { + owner = "dnscontrol"; + repo = "dnscontrol"; + tag = "v4.39.0"; + hash = "sha256-2pesk5yT7YPROZiX7bqjRhQi4bk3YS0nxSkP+RjZ1so="; + }; + + vendorHash = "sha256-pzdOW+L/w74ANaCKXWQviBMDlSTOfebAVE7Cdd+lZLo="; + }); + types = pkgs.runCommand "dnscontrol-types" { - runtimeInputs = [ pkgs.dnscontrol ]; - } "${lib.getExe pkgs.dnscontrol} write-types -o $out"; + runtimeInputs = [ dnscontrol ]; + } "${lib.getExe dnscontrol} write-types -o $out"; update-types = '' f="types-dnscontrol.d.ts" if [[ -e "$f" && ! -L "$f" ]]