<commit_before>{ stdenv
, fetchurl
, patchelf
}:

let
  inherit (stdenv.lib)
    makeLibraryPath;
in

stdenv.mkDerivation rec {
  name = "btsync-${version}";
  version = "2.3.6";

  src  = fetchurl {
    url  = "https://download-cdn.getsync.com/${version}/"
      + "linux-x64/BitTorrent-Sync_x64.tar.gz";
    sha256 = "fac80d415aa44d9f2e027b56cb4fea1aa8770489cffc037b64fd05135fa4d907";
  };

  nativeBuildInputs = [
    patchelf
  ];

  libPath = makeLibraryPath [
    stdenv.cc.libc
  ];

  sourceRoot = ".";

  installPhase = ''
    install -D -m755 -v btsync $out/bin/btsync
  '';

  preFixup = ''
    patchelf \
      --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
      --set-rpath "${libPath}" \
      "$out/bin/btsync"
  '';

  dontStrip   = true;

  meta = with stdenv.lib; {
    description = "Automatically sync files via secure, distributed technology";
    homepage = "http://www.bittorrent.com/sync";<commit_msg>fix typo<commit_after>{ stdenv
, fetchurl
, patchelf
}:

let
  inherit (stdenv.lib)
    makeLibraryPath;
in

stdenv.mkDerivation rec {
  name = "btsync-${version}";
  version = "2.3.6";

  src  = fetchurl {
    url  = "https://download-cdn.getsync.com/${version}/"
      + "linux-x64/BitTorrent-Sync_x64.tar.gz";
    sha256 = "fac80d415aa44d9f2e027b56cb4fea1aa8770489cffc037b64fd05135fa4d907";
  };

  nativeBuildInputs = [
    patchelf
  ];

  libPath = makeLibraryPath [
    stdenv.cc.libc
  ];

  sourceRoot = ".";

  installPhase = ''
    install -D -m755 -v btsync $out/bin/btsync
  '';

  preFixup = ''
    patchelf \
      --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
      --set-rpath "${libPath}" \
      "$out/bin/btsync"
  '';

  dontStrip = true;

  meta = with stdenv.lib; {
    description = "Automatically sync files via secure, distributed technology";
    homepage = "http://www.bittorrent.com/sync";
{'fraction_non_alphanumeric': 0.15072153928380544, 'fraction_numerical': 0.05344735435595938, 'mean_word_length': 2.8677685950413223, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1664213', 'n_tokens_mistral': 804, 'n_tokens_neox': 743, 'n_words': 116}