2025-04-15 06:24:30 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pkg-config,
|
|
|
|
libsodium,
|
|
|
|
nix-update-script,
|
|
|
|
versionCheckHook,
|
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "encrypted-dns-server";
|
2025-05-02 12:57:05 +00:00
|
|
|
version = "0.9.17";
|
2025-04-15 06:24:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DNSCrypt";
|
|
|
|
repo = "encrypted-dns-server";
|
|
|
|
tag = version;
|
2025-05-02 12:57:05 +00:00
|
|
|
hash = "sha256-un7607HQ7s7G2GPTmYVT3wK/ePLNVyV+A2mtKt0YGsw=";
|
2025-04-15 06:24:30 +00:00
|
|
|
};
|
|
|
|
|
2025-05-02 12:57:05 +00:00
|
|
|
cargoHash = "sha256-qhY1LgtV0Kmj/at9EG7Y+swN1Oy0/SzRCr7U8xVh8KA=";
|
2025-04-15 06:24:30 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ libsodium ];
|
|
|
|
|
|
|
|
env = {
|
|
|
|
SODIUM_USE_PKG_CONFIG = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
|
|
doInstallCheck = true;
|
|
|
|
versionCheckProgram = "${placeholder "out"}/bin/encrypted-dns";
|
|
|
|
versionCheckProgramArg = "--version";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
changelog = "https://github.com/DNSCrypt/encrypted-dns-server/releases/tag/${version}";
|
2025-06-05 09:11:29 -07:00
|
|
|
description = "Easy to install, high-performance, zero maintenance proxy to run an encrypted DNS server";
|
2025-04-15 06:24:30 +00:00
|
|
|
homepage = "https://github.com/DNSCrypt/encrypted-dns-server";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ paepcke ];
|
|
|
|
mainProgram = "encrypted-dns";
|
|
|
|
};
|
|
|
|
}
|