<commit_before>{ stdenv
, fetchurl
, lib

, libevent
, libsodium
}:

let
  version = "0.3";
in
stdenv.mkDerivation rec {
  name = "dnscrypt-wrapper-${version}";

  src = fetchurl {
    url = "https://github.com/Cofyc/dnscrypt-wrapper/releases/download/"
      + "v${version}/dnscrypt-wrapper-v${version}.tar.bz2";
    sha256 = "ec5c290ba9b9a05536fa6ee827373ca9b3841508e6d075ae364405152446499c";
  };

  buildInputs = [
    libevent
    libsodium
  ];

  preBuild = ''
    makeFlagsArray+=("PREFIX=$out")
  '';

  meta = with lib; {
    desciption = "Wrapper helps to add dnscrypt support to any name resolver";
    homepage = https://github.com/Cofyc/dnscrypt-wrapper;
    license = licenses.gpl2;
    maintainers = with maintainers; [
      wkennington
    ];
    platforms = with platforms;
      x86_64-linux;
  };<commit_msg>dnscrypt-wrapper: 0.3 -> 0.4.0<commit_after>{ stdenv
, fetchFromGitHub
, lib

, libevent
, libsodium
}:

let
  version = "0.4.0";
in
stdenv.mkDerivation rec {
  name = "dnscrypt-wrapper-${version}";

  src = fetchFromGitHub {
    version = 5;
    owner = "cofyc";
    repo = "dnscrypt-wrapper";
    rev = "v${version}";
    sha256 = "1ff78deeac40f12d5c5831a6452932cd5af76acc6e0011922168d560b764fe00";
  };

  buildInputs = [
    libevent
    libsodium
  ];

  preBuild = ''
    makeFlagsArray+=("PREFIX=$out")
  '';

  meta = with lib; {
    desciption = "Wrapper helps to add dnscrypt support to any name resolver";
    homepage = https://github.com/Cofyc/dnscrypt-wrapper;
    license = licenses.gpl2;
    maintainers = with maintainers; [
      wkennington
    ];
    platforms = with platforms;
      x86_64-linux;
  };
{'fraction_non_alphanumeric': 0.13196125907990314, 'fraction_numerical': 0.06900726392251816, 'mean_word_length': 3.1325, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2880250', 'n_tokens_mistral': 695, 'n_tokens_neox': 624, 'n_words': 111}