2022-01-23 21:08:10 +01:00
|
|
|
{ lib, rustPlatform, fetchCrate, stdenv, Security, libiconv, nixosTests }:
|
2020-08-18 08:36:13 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "doh-proxy-rust";
|
2023-02-22 10:09:30 +01:00
|
|
|
version = "0.9.8";
|
2020-08-18 08:36:13 +02:00
|
|
|
|
2021-10-07 15:29:34 +02:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit version;
|
|
|
|
crateName = "doh-proxy";
|
2023-02-22 10:09:30 +01:00
|
|
|
sha256 = "sha256-+Z2eneEK6nhcJEKRa1VIolCTZ8to2mMQ8Ik7WEH+1w0=";
|
2020-08-18 08:36:13 +02:00
|
|
|
};
|
|
|
|
|
2023-02-22 10:09:30 +01:00
|
|
|
cargoHash = "sha256-nlKzVQeLg3/nBIkD7QoBUWC93m9BiJrybf13Y/ns9gA=";
|
2020-08-18 08:36:13 +02:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security libiconv ];
|
|
|
|
|
2022-01-23 21:08:10 +01:00
|
|
|
passthru.tests = { inherit (nixosTests) doh-proxy-rust; };
|
|
|
|
|
2020-08-18 08:36:13 +02: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 15:29:34 +02:00
|
|
|
mainProgram = "doh-proxy";
|
2020-08-18 08:36:13 +02:00
|
|
|
};
|
|
|
|
}
|