2022-01-23 20:08:10 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate, stdenv, Security, libiconv, nixosTests }:
|
2020-08-18 07:36:13 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "doh-proxy-rust";
|
2021-10-07 14:29:34 +01:00
|
|
|
version = "0.9.2";
|
2020-08-18 07:36:13 +01:00
|
|
|
|
2021-10-07 14:29:34 +01:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit version;
|
|
|
|
crateName = "doh-proxy";
|
|
|
|
sha256 = "sha256-/637lR6OycVOOUVe29uFR1LtYIoFJ6gslDV9uAGkU1A=";
|
2020-08-18 07:36:13 +01:00
|
|
|
};
|
|
|
|
|
2021-10-07 14:29:34 +01:00
|
|
|
cargoSha256 = "sha256-tadTyWSuknAjosv7AvZF0/8FlHL/zcFT5LDW1KcMeHI=";
|
2020-08-18 07:36:13 +01:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security libiconv ];
|
|
|
|
|
2022-01-23 20:08:10 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) doh-proxy-rust; };
|
|
|
|
|
2020-08-18 07:36:13 +01: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-07 14:29:34 +01:00
|
|
|
mainProgram = "doh-proxy";
|
2020-08-18 07:36:13 +01:00
|
|
|
};
|
|
|
|
}
|