blob: c599cf49f91f76487fcc3fd28cca544df2e5466c (
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
36
37
38
39
|
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
rustfmt,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "zeronsd";
version = "0.5.2";
src = fetchFromGitHub {
owner = "zerotier";
repo = "zeronsd";
rev = "v${finalAttrs.version}";
hash = "sha256-TL0bgzQgge6j1SpZCdxv/s4pBMSg4/3U5QisjkVE6BE=";
};
cargoHash = "sha256-xIuMANJGRHbYBbhlVMXxIVrukW1NY7ucxO79tIdPSpI=";
strictDeps = true;
buildInputs = [ openssl ];
nativeBuildInputs = [ pkg-config ];
env.RUSTFMT = "${rustfmt}/bin/rustfmt";
# Integration tests try to access the ZeroTier API which requires an API token.
# https://github.com/zerotier/zeronsd/blob/v0.5.2/tests/service/network.rs#L10
doCheck = false;
meta = {
description = "DNS server for ZeroTier users";
homepage = "https://github.com/zerotier/zeronsd";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.dstengele ];
};
})
|