<commit_before>{ stdenv
, fetchurl
, libtool
, dhcp
, docbook5_xsl

, db
, idnkit
, json-c
, kerberos
, libcap
, libseccomp
, libxml2
, mysql_lib
, ncurses
, openldap
, openssl
, postgresql_lib
, python
, readline

, suffix ? ""
}:

let
  toolsOnly = suffix == "tools";

  inherit (stdenv.lib)
    optionals
    optionalString;
in
stdenv.mkDerivation rec {
  name = "bind${optionalString (suffix != "") "-${suffix}"}-${version}";
  version = "9.10.4";

  src = fetchurl {
    url = "http://ftp.isc.org/isc/bind9/${version}/bind-${version}.tar.gz";
    allowHashOutput = false;
    sha256 = "f8d412b38d5ac390275b943bde69f4608f67862a45487ec854b30e4448fcb056";
  };

  nativeBuildInputs = [
    docbook5_xsl
    libtool
  ];

  buildInputs = [
    idnkit
    json-c
    kerberos
    libcap
    libseccomp
    libxml2
    ncurses
    openssl
    python
    readline
  ] ++ optionals (!toolsOnly) [
    db
    openldap
    mysql_lib
    postgresql_lib
  ];

  configureFlags = [<commit_msg>bind: 9.10.4 -> 9.10.4-P1<commit_after>{ stdenv
, fetchurl
, libtool
, dhcp
, docbook5_xsl

, db
, idnkit
, json-c
, kerberos
, libcap
, libseccomp
, libxml2
, mysql_lib
, ncurses
, openldap
, openssl
, postgresql_lib
, python
, readline

, suffix ? ""
}:

let
  toolsOnly = suffix == "tools";

  inherit (stdenv.lib)
    optionals
    optionalString;
in
stdenv.mkDerivation rec {
  name = "bind${optionalString (suffix != "") "-${suffix}"}-${version}";
  version = "9.10.4-P1";

  src = fetchurl {
    url = "http://ftp.isc.org/isc/bind9/${version}/bind-${version}.tar.gz";
    allowHashOutput = false;
    sha256 = "7c3b7d1afe48a6bbead8f11f6971fb09eb57fa257dc32a088fcc20a0218131a2";
  };

  nativeBuildInputs = [
    docbook5_xsl
    libtool
  ];

  buildInputs = [
    idnkit
    json-c
    kerberos
    libcap
    libseccomp
    libxml2
    ncurses
    openssl
    python
    readline
  ] ++ optionals (!toolsOnly) [
    db
    openldap
    mysql_lib
    postgresql_lib
  ];

  configureFlags = [
{'fraction_non_alphanumeric': 0.12544080604534005, 'fraction_numerical': 0.05743073047858942, 'mean_word_length': 2.9326732673267326, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6592526', 'n_tokens_mistral': 867, 'n_tokens_neox': 796, 'n_words': 136}