2015-03-07 18:09:52 +00:00
|
|
|
{ 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}";
|
2015-07-18 19:31:18 +01:00
|
|
|
version = "1.6.0";
|
2014-11-03 07:32:59 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.dnscrypt.org/dnscrypt-proxy/${name}.tar.bz2";
|
2015-07-18 19:31:18 +01:00
|
|
|
sha256 = "0zfw9vi9qbsc55awncyigqfqp25v5adqk6jpg1jdfkmbqqfykk70";
|
2014-11-03 07:32:59 +00:00
|
|
|
};
|
|
|
|
|
2015-03-07 18:09:52 +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 = {
|
2014-11-21 14:42:11 +00:00
|
|
|
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/;
|
2015-05-28 18:20:29 +01:00
|
|
|
license = stdenv.lib.licenses.isc;
|
2015-06-22 07:45:48 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ joachifm jgeerds ];
|
2015-03-20 15:52:02 +00:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2014-11-03 07:32:59 +00:00
|
|
|
};
|
|
|
|
}
|