dnscrypt-proxy: enable systemd support on linux
This permits using socket activation in the NixOS service module.
This commit is contained in:
parent
dfe20de782
commit
114cb31b65
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, libsodium }:
|
{ stdenv, fetchurl, libsodium, pkgconfig, systemd }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "dnscrypt-proxy-1.4.3";
|
name = "dnscrypt-proxy-1.4.3";
|
||||||
@ -8,7 +8,11 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0cij80ryxnikpmm6s79c2fqg6bdiz1wdy50xrnd7w954vw9mhr0b";
|
sha256 = "0cij80ryxnikpmm6s79c2fqg6bdiz1wdy50xrnd7w954vw9mhr0b";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libsodium ];
|
configureFlags = ''
|
||||||
|
${stdenv.lib.optionalString stdenv.isLinux "--with-systemd"}
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [ pkgconfig libsodium ] ++ stdenv.lib.optional stdenv.isLinux systemd;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A tool for securing communications between a client and a DNS resolver";
|
description = "A tool for securing communications between a client and a DNS resolver";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user