blob: 1d55facdf15200cb3d3bcafcba85ff878f7a6394 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{
lib,
rustPlatform,
fetchCrate,
stdenv,
libiconv,
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "doh-proxy-rust";
version = "0.9.16";
src = fetchCrate {
inherit (finalAttrs) version;
crateName = "doh-proxy";
hash = "sha256-V/mWMKBsCStQovgvMtRP66+OsNF2TC0GarYY51C/Zik=";
};
cargoHash = "sha256-daXXjD789tJBph00FPlm2C5gW3jwcTTAZ5TVeDJz8lU=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
libiconv
];
passthru.tests = { inherit (nixosTests) doh-proxy-rust; };
meta = {
homepage = "https://github.com/jedisct1/doh-server";
description = "Fast, mature, secure DoH server proxy written in Rust";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ stephank ];
mainProgram = "doh-proxy";
};
})
|