anchor.diff:      ++ optional withJson json_c
       ++ optional withYubikey libyubikey
       ++ optional withCollectd collectd;
  -
  -  # NOTE: are the --with-{lib}-lib-dir and --with-{lib}-include-dir necessary with buildInputs ?
   
     configureFlags = [
        "--sysconfdir=/etc"
  
positive.code:     "localstatedir=\${TMPDIR}"
    ];
  
    src = fetchurl {
      url = "ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-${version}.tar.gz";
      sha256 = "0naxw9b060rbp4409904j6nr2zwl6wbjrbq1839xrwhmaf8p4yxr";
    };
  
    meta = with stdenv.lib; {
      homepage = http://freeradius.org/;
      description = "A modular, high performance free RADIUS suite";
  
negative.code: with stdenv.lib;
  stdenv.mkDerivation rec {
    name = "freeradius-${version}";
    version = "3.0.12";
  
    src = fetchurl {
      url = "ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-${version}.tar.gz";
      sha256 = "182xnb9pdsivlyfm471l90m37q9i04h7jadhkgm0ivvzrzpzcnja";
    };
  
    nativeBuildInputs = [ autoreconfHook ];
  
    buildInputs = [ openssl talloc finger_bsd perl ]
      ++ optional withLdap openldap
      ++ optional withSqlite sqlite
      ++ optional withPcap libpcap
  