summary refs log tree commit diff
path: root/pkgs/tools/networking/unbound/default.nix
blob: ea9719dd9b291c7056b47243ec76f2714040513f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ stdenv, fetchurl, openssl, expat, libevent, ldns }:

stdenv.mkDerivation rec {
  name = "unbound-1.4.13";

  src = fetchurl {
    url = "http://unbound.net/downloads/${name}.tar.gz";
    sha256 = "04r379gma1ghr9zjc1fmncpw8kka4f0mpcmrzidsp264aqkxriw3";
  };
 
  buildInputs = [openssl expat libevent ldns];

  configureFlags = [ "--with-ssl=${openssl}" "--with-libexpat=${expat}"
    "--localstatedir=/var" ];

  meta = {
    description = "Validating, recursive, and caching DNS resolver";
    license = "BSD";
    homepage = http://www.unbound.net;
    platforms = with stdenv.lib.platforms; linux;
  };
}