nixpkgs-suyu/pkgs/tools/networking/stubby/default.nix

34 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, getdns, doxygen, libyaml, darwin, cmake, systemd }:
2018-02-14 21:53:18 +01:00
stdenv.mkDerivation rec {
pname = "stubby";
2020-02-28 19:36:33 +01:00
version = "0.3.0";
2018-02-14 21:53:18 +01:00
src = fetchFromGitHub {
owner = "getdnsapi";
repo = pname;
rev = "v${version}";
2020-02-28 19:36:33 +01:00
sha256 = "04izd1v4fv9l7r75aafkrp6svczbx4cvv1vnfyx5n9105pin11mx";
2018-02-14 21:53:18 +01:00
};
2020-02-28 19:36:33 +01:00
nativeBuildInputs = [ cmake libyaml ];
2018-02-14 21:53:18 +01:00
buildInputs = [ doxygen getdns systemd ]
2021-01-15 10:19:50 +01:00
++ lib.optionals stdenv.isDarwin [ darwin.Security ];
2018-02-14 21:53:18 +01:00
meta = with lib; {
2018-02-14 21:53:18 +01:00
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.
2020-02-28 19:36:33 +01:00
'';
homepage = "https://dnsprivacy.org/wiki/x/JYAT";
2018-02-14 21:53:18 +01:00
downloadPage = "https://github.com/getdnsapi/stubby";
2020-02-28 19:36:33 +01:00
maintainers = with maintainers; [ leenaars ehmry ];
2018-02-14 21:53:18 +01:00
license = licenses.bsd3; platforms = platforms.all;
2020-02-28 19:36:33 +01:00
};
2018-02-14 21:53:18 +01:00
}