1 { lib, rustPlatform, fetchCrate, stdenv, Security, libiconv, nixosTests }:
3 rustPlatform.buildRustPackage rec {
4 pname = "doh-proxy-rust";
9 crateName = "doh-proxy";
10 hash = "sha256-h2LwxqyyBPAXRr6XOmcLEmbet063kkM1ledULp3M2ek=";
13 cargoHash = "sha256-eXPAn2ziSdciZa6YrOIa7y7Lms681X+yVAD9HrvsZHg=";
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";