mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
49 lines
1 KiB
Nix
49 lines
1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
openssl,
|
|
pkg-config,
|
|
rustPlatform,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "hickory-dns";
|
|
version = "0.25.0-alpha.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hickory-dns";
|
|
repo = "hickory-dns";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-yLhTQIu9C1ikm0TtoEPLSt7ZWqJXn4YE2Lrx38sSJtE=";
|
|
};
|
|
|
|
cargoHash = "sha256-j6J47b0CWbw4glOYam7VXt3IjPCdYY1y/U1d4Ho82uE=";
|
|
|
|
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 {
|
|
# remove when 0.25.0 is released
|
|
extraArgs = [
|
|
"--version"
|
|
"unstable"
|
|
];
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|