Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule (finalAttrs: { 8 pname = "dnsproxy"; 9 version = "0.76.1"; 10 11 src = fetchFromGitHub { 12 owner = "AdguardTeam"; 13 repo = "dnsproxy"; 14 tag = "v${finalAttrs.version}"; 15 hash = "sha256-XbFa0KN5RYcdjXHKSnSs0ba+9YDFGZN/DafV4gOSow0="; 16 }; 17 18 vendorHash = "sha256-87WXRBzV7ROsWAhtS8vcpvj4x1yIcFDaEje8inAqwoo="; 19 20 ldflags = [ 21 "-s" 22 "-w" 23 "-X" 24 "github.com/AdguardTeam/dnsproxy/internal/version.version=${finalAttrs.version}" 25 ]; 26 27 # Development tool dependencies; not part of the main project 28 excludedPackages = [ "internal/tools" ]; 29 30 doCheck = false; 31 32 meta = { 33 description = "Simple DNS proxy with DoH, DoT, and DNSCrypt support"; 34 homepage = "https://github.com/AdguardTeam/dnsproxy"; 35 license = lib.licenses.asl20; 36 maintainers = with lib.maintainers; [ 37 contrun 38 diogotcorreia 39 ]; 40 mainProgram = "dnsproxy"; 41 }; 42})