dnscrypt-proxy: enable systemd support on linux

This permits using socket activation in the NixOS service
module.

+6 -2
+6 -2
pkgs/tools/networking/dnscrypt-proxy/default.nix
··· 1 - { stdenv, fetchurl, libsodium }: 2 3 stdenv.mkDerivation rec { 4 name = "dnscrypt-proxy-1.4.3"; ··· 8 sha256 = "0cij80ryxnikpmm6s79c2fqg6bdiz1wdy50xrnd7w954vw9mhr0b"; 9 }; 10 11 - buildInputs = [ libsodium ]; 12 13 meta = { 14 description = "A tool for securing communications between a client and a DNS resolver";
··· 1 + { stdenv, fetchurl, libsodium, pkgconfig, systemd }: 2 3 stdenv.mkDerivation rec { 4 name = "dnscrypt-proxy-1.4.3"; ··· 8 sha256 = "0cij80ryxnikpmm6s79c2fqg6bdiz1wdy50xrnd7w954vw9mhr0b"; 9 }; 10 11 + configureFlags = '' 12 + ${stdenv.lib.optionalString stdenv.isLinux "--with-systemd"} 13 + ''; 14 + 15 + buildInputs = [ pkgconfig libsodium ] ++ stdenv.lib.optional stdenv.isLinux systemd; 16 17 meta = { 18 description = "A tool for securing communications between a client and a DNS resolver";