From 61dc6030bf31ae8496b630c7dca4eec5f09f5173 Mon Sep 17 00:00:00 2001 From: Michiel Leenaars Date: Wed, 14 Feb 2018 21:53:18 +0100 Subject: [PATCH] stubby: init at 0.2.2 --- pkgs/tools/networking/stubby/default.nix | 35 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/tools/networking/stubby/default.nix diff --git a/pkgs/tools/networking/stubby/default.nix b/pkgs/tools/networking/stubby/default.nix new file mode 100644 index 000000000000..bd611af24263 --- /dev/null +++ b/pkgs/tools/networking/stubby/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchFromGitHub, getdns, libtool, m4, file , doxygen +, autoreconfHook, automake, check, libbsd, libyaml, darwin }: + +stdenv.mkDerivation rec { + pname = "stubby"; + name = "${pname}-${version}"; + version = "0.2.2"; + + src = fetchFromGitHub { + owner = "getdnsapi"; + repo = pname; + rev = "v${version}"; + sha256 = "1zq7h3jx6v821phcbjp348ncdicx9s4gqkj7mcz8kd6ps902iag8"; + }; + + nativeBuildInputs = [ libtool m4 libbsd libyaml autoreconfHook ]; + + buildInputs = [ doxygen getdns automake file check ] + ++ 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 ]; + license = licenses.bsd3; platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e1deae16d526..caa86b444a50 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4781,6 +4781,8 @@ with pkgs; storebrowse = callPackage ../tools/system/storebrowse { }; + stubby = callPackage ../tools/networking/stubby { }; + syntex = callPackage ../tools/graphics/syntex {}; fusesmb = callPackage ../tools/filesystems/fusesmb { samba = samba3; };