2015-03-07 19:09:52 +01:00
|
|
|
{ stdenv, fetchurl, libsodium, pkgconfig, systemd }:
|
2014-11-03 08:32:59 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-06-12 14:19:23 +02:00
|
|
|
name = "dnscrypt-proxy-${version}";
|
2015-07-18 20:31:18 +02:00
|
|
|
version = "1.6.0";
|
2014-11-03 08:32:59 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.dnscrypt.org/dnscrypt-proxy/${name}.tar.bz2";
|
2015-07-18 20:31:18 +02:00
|
|
|
sha256 = "0zfw9vi9qbsc55awncyigqfqp25v5adqk6jpg1jdfkmbqqfykk70";
|
2014-11-03 08:32:59 +01:00
|
|
|
};
|
|
|
|
|
2015-03-07 19:09:52 +01:00
|
|
|
configureFlags = ''
|
|
|
|
${stdenv.lib.optionalString stdenv.isLinux "--with-systemd"}
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ pkgconfig libsodium ] ++ stdenv.lib.optional stdenv.isLinux systemd;
|
2014-11-03 08:32:59 +01:00
|
|
|
|
|
|
|
meta = {
|
2014-11-21 15:42:11 +01:00
|
|
|
description = "A tool for securing communications between a client and a DNS resolver";
|
2014-11-03 08:32:59 +01:00
|
|
|
homepage = http://dnscrypt.org/;
|
2015-05-28 19:20:29 +02:00
|
|
|
license = stdenv.lib.licenses.isc;
|
2015-06-22 08:45:48 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ joachifm jgeerds ];
|
2015-03-20 16:52:02 +01:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2014-11-03 08:32:59 +01:00
|
|
|
};
|
|
|
|
}
|