2022-01-25 03:21:06 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate, stdenv, Security, libiconv, nixosTests }:
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "doh-proxy-rust";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "0.9.4";
|
2021-04-12 18:23:04 +00:00
|
|
|
|
2021-10-08 15:17:17 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit version;
|
|
|
|
crateName = "doh-proxy";
|
2022-09-30 11:47:45 +00:00
|
|
|
sha256 = "sha256-IuLNgyPiAPYu440jMtpXxEuQDIn9TUMjnD7y8WB+Ujs=";
|
2021-04-12 18:23:04 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
cargoSha256 = "sha256-qrLhRNaGG7n9UPtkqNkJvnf+w9P0iLQ7MkIxnWYqYLM=";
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security libiconv ];
|
|
|
|
|
2022-01-25 03:21:06 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) doh-proxy-rust; };
|
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
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 ];
|
2021-10-08 15:17:17 +00:00
|
|
|
mainProgram = "doh-proxy";
|
2021-04-12 18:23:04 +00:00
|
|
|
};
|
|
|
|
}
|