at 22.05-pre 34 lines 992 B view raw
1{ lib, stdenv, fetchFromGitHub, cmake, gtest, c-ares, curl, libev }: 2 3stdenv.mkDerivation rec { 4 pname = "https-dns-proxy"; 5 # there are no stable releases (yet?) 6 version = "unstable-20200419"; 7 8 src = fetchFromGitHub { 9 owner = "aarond10"; 10 repo = "https_dns_proxy"; 11 rev = "79fc7b085e3b1ad64c8332f7115dfe2bf5f1f3e4"; 12 sha256 = "1cdfswfjby4alp6gy7yyjm76kfyclh5ax0zadnqs2pyigg9plh0b"; 13 }; 14 15 nativeBuildInputs = [ cmake gtest ]; 16 17 buildInputs = [ c-ares curl libev ]; 18 19 installPhase = '' 20 install -Dm555 -t $out/bin https_dns_proxy 21 install -Dm444 -t $out/share/doc/${pname} ../{LICENSE,README}.* 22 ''; 23 24 # upstream wants to add tests and the gtest framework is in place, so be ready 25 # for when that happens despite there being none as of right now 26 doCheck = true; 27 28 meta = with lib; { 29 description = "DNS to DNS over HTTPS (DoH) proxy"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ peterhoeg ]; 32 platforms = platforms.linux; 33 }; 34}