1 { lib, rustPlatform, fetchCrate, stdenv, Security, libiconv, nixosTests }:
3 rustPlatform.buildRustPackage rec {
4 pname = "doh-proxy-rust";
9 crateName = "doh-proxy";
10 sha256 = "sha256-KvEayC+aY8aC5fSVIV9urNwLJcIfDMaAU+XdlGSmYRI=";
13 cargoHash = "sha256-eoC90ht9cbMLkPN3S4jxZipbFoZDTU7pIr6GRagGlJE=";
15 buildInputs = lib.optionals stdenv.isDarwin [ Security libiconv ];
17 passthru.tests = { inherit (nixosTests) doh-proxy-rust; };
20 homepage = "https://github.com/jedisct1/doh-server";
21 description = "Fast, mature, secure DoH server proxy written in Rust";
22 license = with licenses; [ mit ];
23 maintainers = with maintainers; [ stephank ];
24 mainProgram = "doh-proxy";