depot/pkgs/by-name/hi/hickory-dns/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

42 lines
973 B
Nix

{
lib,
fetchFromGitHub,
openssl,
pkg-config,
rustPlatform,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "hickory-dns";
version = "0.25.0-alpha.2";
src = fetchFromGitHub {
owner = "hickory-dns";
repo = "hickory-dns";
rev = "refs/tags/v${version}";
hash = "sha256-bEVApMM6/I3nF1lyRhd+7YtZuSAwiozRkMorRLhLOBY=";
};
cargoHash = "sha256-Rq4l1iV70nlhBaJ02hc+dmNZ/Q7qrHoF0Kp0MTmu22A=";
buildInputs = [ openssl ];
nativeBuildInputs = [ pkg-config ];
# tests expect internet connectivity to query real nameservers like 8.8.8.8
doCheck = false;
passthru.updateScript = nix-update-script { };
meta = {
description = "Rust based DNS client, server, and resolver";
homepage = "https://hickory-dns.org/";
maintainers = with lib.maintainers; [ colinsane ];
platforms = lib.platforms.linux;
license = with lib.licenses; [
asl20
mit
];
mainProgram = "hickory-dns";
};
}