Files
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

47 lines
1.2 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
libsodium,
nix-update-script,
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
pname = "encrypted-dns-server";
version = "0.9.17";
src = fetchFromGitHub {
owner = "DNSCrypt";
repo = "encrypted-dns-server";
tag = version;
hash = "sha256-un7607HQ7s7G2GPTmYVT3wK/ePLNVyV+A2mtKt0YGsw=";
};
cargoHash = "sha256-qhY1LgtV0Kmj/at9EG7Y+swN1Oy0/SzRCr7U8xVh8KA=";
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}";
description = "Easy to install, high-performance, zero maintenance proxy to run an encrypted DNS server";
homepage = "https://github.com/DNSCrypt/encrypted-dns-server";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ paepcke ];
mainProgram = "encrypted-dns";
};
}