nixpkgs-suyu/pkgs/servers/dns/doh-proxy-rust/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
788 B
Nix
Raw Normal View History

{ lib, rustPlatform, fetchCrate, stdenv, Security, libiconv, nixosTests }:
2020-08-18 08:36:13 +02:00
rustPlatform.buildRustPackage rec {
pname = "doh-proxy-rust";
2023-05-05 17:32:20 +02:00
version = "0.9.9";
2020-08-18 08:36:13 +02:00
src = fetchCrate {
inherit version;
crateName = "doh-proxy";
2023-05-05 17:32:20 +02:00
sha256 = "sha256-KvEayC+aY8aC5fSVIV9urNwLJcIfDMaAU+XdlGSmYRI=";
2020-08-18 08:36:13 +02:00
};
2023-05-05 17:32:20 +02:00
cargoHash = "sha256-eoC90ht9cbMLkPN3S4jxZipbFoZDTU7pIr6GRagGlJE=";
2020-08-18 08:36:13 +02:00
buildInputs = lib.optionals stdenv.isDarwin [ Security libiconv ];
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 ];
mainProgram = "doh-proxy";
2020-08-18 08:36:13 +02:00
};
}