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 10:32:59 +03:00
stdenv.mkDerivation rec {
2015-06-12 15:19:23 +03:00
name = "dnscrypt-proxy-${version}";
2015-07-18 21:31:18 +03:00
version = "1.6.0";
2014-11-03 10:32:59 +03:00
src = fetchurl {
url = "http://download.dnscrypt.org/dnscrypt-proxy/${name}.tar.bz2";
2015-07-18 21:31:18 +03:00
sha256 = "0zfw9vi9qbsc55awncyigqfqp25v5adqk6jpg1jdfkmbqqfykk70";
2014-11-03 10:32:59 +03:00
};
configureFlags = ''
${stdenv.lib.optionalString stdenv.isLinux "--with-systemd"}
'';
buildInputs = [ pkgconfig libsodium ] ++ stdenv.lib.optional stdenv.isLinux systemd;
2014-11-03 10:32:59 +03:00
meta = {
description = "A tool for securing communications between a client and a DNS resolver";
2014-11-03 10:32:59 +03: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 10:32:59 +03:00
};
}