dnscrypt-proxy: enable systemd support on linux

This permits using socket activation in the NixOS service
module.
This commit is contained in:
Joachim Fasting 2015-03-07 19:09:52 +01:00
parent dfe20de782
commit 114cb31b65

View File

@ -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";