From 0526467494476586a715e75c1ac37c5a800df011 Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Thu, 16 Mar 2017 14:57:07 +0100 Subject: [PATCH] dnscrypt-proxy: enable additional plugins Adding ldns builds additional plugins for rewriting DNS queries, such as blocking and forwarding. For example, to use a custom domain blocklist, you can do ```nix let myBlockListFile = writeText "blocked-domains" '' *.example.com ''; in { services.dnscrypt-proxy.extraArgs = [ "-X libdcplugin_example_ldns_blocking.so,--domains=${myBlockListFile}" ]; } ``` --- pkgs/tools/networking/dnscrypt-proxy/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/dnscrypt-proxy/default.nix b/pkgs/tools/networking/dnscrypt-proxy/default.nix index 24aa3d4b829b..03d217440957 100644 --- a/pkgs/tools/networking/dnscrypt-proxy/default.nix +++ b/pkgs/tools/networking/dnscrypt-proxy/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pkgconfig, libsodium, systemd }: +{ stdenv, fetchurl, pkgconfig, libsodium, ldns, openssl, systemd }: with stdenv.lib; @@ -15,7 +15,8 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ libsodium ] ++ optional stdenv.isLinux systemd; + # depends on + buildInputs = [ libsodium openssl.dev ldns ] ++ optional stdenv.isLinux systemd; postInstall = '' # Previous versions required libtool files to load plugins; they are