Merge pull request #81365 from peterhoeg/p/https-dns

https-dns-proxy: init at unstable-20200419
This commit is contained in:
Peter Hoeg 2020-04-20 14:06:40 +08:00 committed by GitHub
commit 53c14c4e65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 0 deletions

@ -0,0 +1,34 @@
{ stdenv, fetchFromGitHub, cmake, gtest, c-ares, curl, libev }:
stdenv.mkDerivation rec {
pname = "https-dns-proxy";
# there are no stable releases (yet?)
version = "unstable-20200419";
src = fetchFromGitHub {
owner = "aarond10";
repo = "https_dns_proxy";
rev = "79fc7b085e3b1ad64c8332f7115dfe2bf5f1f3e4";
sha256 = "1cdfswfjby4alp6gy7yyjm76kfyclh5ax0zadnqs2pyigg9plh0b";
};
nativeBuildInputs = [ cmake gtest ];
buildInputs = [ c-ares curl libev ];
installPhase = ''
install -Dm555 -t $out/bin https_dns_proxy
install -Dm444 -t $out/share/doc/${pname} ../{LICENSE,README}.*
'';
# upstream wants to add tests and the gtest framework is in place, so be ready
# for when that happens despite there being none as of right now
doCheck = true;
meta = with stdenv.lib; {
description = "DNS to DNS over HTTPS (DoH) proxy";
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
platforms = platforms.linux;
};
}

@ -15527,6 +15527,8 @@ in
home-assistant-cli = callPackage ../servers/home-assistant/cli.nix { };
https-dns-proxy = callPackage ../servers/dns/https-dns-proxy { };
hydron = callPackage ../servers/hydron { };
icingaweb2 = callPackage ../servers/icingaweb2 { };