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

26 lines
786 B
Nix
Raw Normal View History

{ 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
};
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 = {
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/;
license = stdenv.lib.licenses.isc;
maintainers = with stdenv.lib.maintainers; [ joachifm jgeerds ];
platforms = stdenv.lib.platforms.all;
2014-11-03 08:32:59 +01:00
};
}