summary refs log tree commit diff
path: root/pkgs/tools/networking/stubby/default.nix
blob: 2a10eb13e32059e11fe359c20afedfc591f6d8ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ stdenv, fetchFromGitHub, getdns, doxygen, libyaml, darwin, cmake, systemd }:

stdenv.mkDerivation rec {
  pname = "stubby";
  version = "0.3.0";

  src = fetchFromGitHub {
    owner = "getdnsapi";
    repo = pname;
    rev = "v${version}";
    sha256 = "04izd1v4fv9l7r75aafkrp6svczbx4cvv1vnfyx5n9105pin11mx";
  };

  nativeBuildInputs = [ cmake libyaml ];

  buildInputs = [ doxygen getdns systemd ]
    ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.Security ];

  meta = with stdenv.lib; {
    description = "A local DNS Privacy stub resolver (using DNS-over-TLS)";
    longDescription = ''
      Stubby is an application that acts as a local DNS Privacy stub
      resolver (using RFC 7858, aka DNS-over-TLS). Stubby encrypts DNS
      queries sent from a client machine (desktop or laptop) to a DNS
      Privacy resolver increasing end user privacy. Stubby is developed by
      the getdns team.
    '';
    homepage = "https://dnsprivacy.org/wiki/x/JYAT";
    downloadPage = "https://github.com/getdnsapi/stubby";
    maintainers = with maintainers; [ leenaars ehmry ];
    license = licenses.bsd3; platforms = platforms.all;
  };
}