2020-08-18 06:36:13 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, Security, libiconv }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "doh-proxy-rust";
|
|
|
|
version = "0.3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jedisct1";
|
|
|
|
repo = "doh-server";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0jksdrji06ykk5cj6i8ydcjhagjwb2xz5bjs6qsw044p8a2hsq53";
|
|
|
|
};
|
|
|
|
|
2021-05-07 11:00:49 +00:00
|
|
|
cargoSha256 = "0i7rga5w4jh7zia4v2zkbmbc683p69z5z05ksl40jcmzvp29p3fj";
|
2020-08-18 06:36:13 +00:00
|
|
|
cargoPatches = [ ./cargo-lock.patch ];
|
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security libiconv ];
|
|
|
|
|
|
|
|
doCheck = false; # no test suite, skip useless compile step
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/jedisct1/doh-server";
|
|
|
|
description = "Fast, mature, secure DoH server proxy written in Rust";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ stephank ];
|
|
|
|
};
|
|
|
|
}
|