depot/third_party/nixpkgs/pkgs/servers/dns/doh-proxy-rust/default.nix
Default email 93df2b837e Project import generated by Copybara.
GitOrigin-RevId: 18d4025a8ee2f656d897505ccd0ba61a5b89bbea
2021-10-08 17:17:17 +02:00

24 lines
716 B
Nix

{ lib, rustPlatform, fetchCrate, stdenv, Security, libiconv }:
rustPlatform.buildRustPackage rec {
pname = "doh-proxy-rust";
version = "0.9.2";
src = fetchCrate {
inherit version;
crateName = "doh-proxy";
sha256 = "sha256-/637lR6OycVOOUVe29uFR1LtYIoFJ6gslDV9uAGkU1A=";
};
cargoSha256 = "sha256-tadTyWSuknAjosv7AvZF0/8FlHL/zcFT5LDW1KcMeHI=";
buildInputs = lib.optionals stdenv.isDarwin [ Security libiconv ];
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 ];
mainProgram = "doh-proxy";
};
}