Files
nixpkgs/pkgs/by-name/ze/zeronsd/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

40 lines
920 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
rustfmt,
}:
rustPlatform.buildRustPackage rec {
pname = "zeronsd";
version = "0.5.2";
src = fetchFromGitHub {
owner = "zerotier";
repo = "zeronsd";
rev = "v${version}";
hash = "sha256-TL0bgzQgge6j1SpZCdxv/s4pBMSg4/3U5QisjkVE6BE=";
};
cargoHash = "sha256-xIuMANJGRHbYBbhlVMXxIVrukW1NY7ucxO79tIdPSpI=";
strictDeps = true;
buildInputs = [ openssl ];
nativeBuildInputs = [ pkg-config ];
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 = with lib; {
description = "DNS server for ZeroTier users";
homepage = "https://github.com/zerotier/zeronsd";
license = licenses.bsd3;
maintainers = [ maintainers.dstengele ];
};
}