Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, rustPlatform, fetchCrate, stdenv, Security, libiconv, nixosTests }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "doh-proxy-rust";
5 version = "0.9.9";
6
7 src = fetchCrate {
8 inherit version;
9 crateName = "doh-proxy";
10 sha256 = "sha256-KvEayC+aY8aC5fSVIV9urNwLJcIfDMaAU+XdlGSmYRI=";
11 };
12
13 cargoHash = "sha256-eoC90ht9cbMLkPN3S4jxZipbFoZDTU7pIr6GRagGlJE=";
14
15 buildInputs = lib.optionals stdenv.isDarwin [ Security libiconv ];
16
17 passthru.tests = { inherit (nixosTests) doh-proxy-rust; };
18
19 meta = with lib; {
20 homepage = "https://github.com/jedisct1/doh-server";
21 description = "Fast, mature, secure DoH server proxy written in Rust";
22 license = with licenses; [ mit ];
23 maintainers = with maintainers; [ stephank ];
24 mainProgram = "doh-proxy";
25 };
26}