nixpkgs/pkgs/tools/networking/dnscrypt-proxy/default.nix

26 lines
786 B
Nix
Raw Normal View History

{ stdenv, fetchurl, libsodium, pkgconfig, systemd }:
2014-11-03 07:32:59 +00:00
stdenv.mkDerivation rec {
2015-06-12 13:19:23 +01:00
name = "dnscrypt-proxy-${version}";
2016-03-02 12:59:42 +00:00
version = "1.6.1";
2014-11-03 07:32:59 +00:00
src = fetchurl {
url = "http://download.dnscrypt.org/dnscrypt-proxy/${name}.tar.bz2";
2016-03-02 12:59:42 +00:00
sha256 = "16lif3qhyfjpgg54vjlwpslxk90akmbhlpnn1szxm628bmpw6nl9";
2014-11-03 07:32:59 +00:00
};
configureFlags = ''
${stdenv.lib.optionalString stdenv.isLinux "--with-systemd"}
'';
buildInputs = [ pkgconfig libsodium ] ++ stdenv.lib.optional stdenv.isLinux systemd;
2014-11-03 07:32:59 +00:00
meta = {
description = "A tool for securing communications between a client and a DNS resolver";
2014-11-03 07:32:59 +00:00
homepage = http://dnscrypt.org/;
license = stdenv.lib.licenses.isc;
maintainers = with stdenv.lib.maintainers; [ joachifm jgeerds ];
platforms = stdenv.lib.platforms.all;
2014-11-03 07:32:59 +00:00
};
}