Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 nixosTests, 6}: 7 8buildGoModule rec { 9 pname = "dnscrypt-proxy"; 10 version = "2.1.12"; 11 12 vendorHash = null; 13 14 doCheck = false; 15 16 src = fetchFromGitHub { 17 owner = "DNSCrypt"; 18 repo = "dnscrypt-proxy"; 19 rev = version; 20 hash = "sha256-HgpcZccx3gaR3dTJJRKPICvNxZj9KdeC0+2ll8TWgeM="; 21 }; 22 23 passthru.tests = { inherit (nixosTests) dnscrypt-proxy2; }; 24 25 meta = with lib; { 26 description = "Tool that provides secure DNS resolution"; 27 28 license = licenses.isc; 29 homepage = "https://dnscrypt.info/"; 30 maintainers = with maintainers; [ 31 atemu 32 waynr 33 ]; 34 mainProgram = "dnscrypt-proxy"; 35 platforms = with platforms; unix; 36 }; 37}