From 114cb31b659271ad38e4717291622e88f0126ddb Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Sat, 7 Mar 2015 19:09:52 +0100 Subject: [PATCH] dnscrypt-proxy: enable systemd support on linux This permits using socket activation in the NixOS service module. --- pkgs/tools/networking/dnscrypt-proxy/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/dnscrypt-proxy/default.nix b/pkgs/tools/networking/dnscrypt-proxy/default.nix index 11dadf9dcd8..9d86f648470 100644 --- a/pkgs/tools/networking/dnscrypt-proxy/default.nix +++ b/pkgs/tools/networking/dnscrypt-proxy/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, libsodium }: +{ stdenv, fetchurl, libsodium, pkgconfig, systemd }: stdenv.mkDerivation rec { name = "dnscrypt-proxy-1.4.3"; @@ -8,7 +8,11 @@ stdenv.mkDerivation rec { sha256 = "0cij80ryxnikpmm6s79c2fqg6bdiz1wdy50xrnd7w954vw9mhr0b"; }; - buildInputs = [ libsodium ]; + configureFlags = '' + ${stdenv.lib.optionalString stdenv.isLinux "--with-systemd"} + ''; + + buildInputs = [ pkgconfig libsodium ] ++ stdenv.lib.optional stdenv.isLinux systemd; meta = { description = "A tool for securing communications between a client and a DNS resolver";