1{ 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5 nix-update-script, 6}: 7buildGoModule rec { 8 pname = "dns-over-https"; 9 version = "2.3.10"; 10 11 src = fetchFromGitHub { 12 owner = "m13253"; 13 repo = "dns-over-https"; 14 tag = "v${version}"; 15 hash = "sha256-WQ6OyZfQMtW9nZcvlBjHk0R96NQr0Lc2mGB5taC0d6k="; 16 }; 17 18 vendorHash = "sha256-46BrN50G5IhdMwMVMU9Wdj/RFzUzIPoTRucCedMGu4g="; 19 20 ldflags = [ 21 "-w" 22 "-s" 23 ]; 24 25 subPackages = [ 26 "doh-client" 27 "doh-server" 28 ]; 29 30 passthru.updateScript = nix-update-script { }; 31 32 meta = { 33 homepage = "https://github.com/m13253/dns-over-https"; 34 changelog = "https://github.com/m13253/dns-over-https/releases/tag/v${version}"; 35 description = "High performance DNS over HTTPS client & server"; 36 license = lib.licenses.mit; 37 maintainers = with lib.maintainers; [ ]; 38 platforms = lib.platforms.all; 39 }; 40}