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