<commit_before>{ lib, stdenv, fetchurl, makeWrapper, nwjs, zip }:

let
  arch = if stdenv.system == "x86_64-linux" then "l64"
    else if stdenv.system == "i686-linux"   then "l32" 
    else throw "Unsupported system ${stdenv.system}";

in stdenv.mkDerivation rec {
  name = "popcorntime-${version}";
  version = "0.4.0";
  build = "2";

  src = fetchurl {
    url = "http://popcorntime.ag/download.php?file=popcorn-time-community-v${version}-${build}-${arch}.tar.xz";
    sha256 =
      if arch == "l64"
      then "0a68d0a81d8e97c94afa0c75209056ee4b8486f400854c952bd3ad7251bd80c9"
      else "b311c312a29d408a7c661a271d1f3a8fc83865d8a204cf026ee87e9ac173874d";
  };

  dontPatchELF = true;
  sourceRoot = ".";
  buildInputs  = [ zip makeWrapper ];

  buildPhase = ''
    rm Popcorn-Time
    cat ${nwjs}/bin/nw nw.pak > Popcorn-Time
    chmod 555 Popcorn-Time
  '';

  installPhase = ''
    mkdir -p $out/bin
    cp -r * $out/
    makeWrapper $out/Popcorn-Time $out/bin/popcorntime
  '';

  meta = with stdenv.lib; {
    homepage = https://popcorntime.sh/;
    description = "An application that streams movies and TV shows from torrents";
    license = stdenv.lib.licenses.gpl3;
    platforms = platforms.linux;
    maintainers = with maintainers; [ bobvanderlinden rnhmjoj ];
  };
}<commit_msg>popcorntime: mark as broken<commit_after>{ lib, stdenv, fetchurl, makeWrapper, nwjs, zip }:

let
  arch = if stdenv.system == "x86_64-linux" then "l64"
    else if stdenv.system == "i686-linux"   then "l32" 
    else throw "Unsupported system ${stdenv.system}";

in stdenv.mkDerivation rec {
  name = "popcorntime-${version}";
  version = "0.4.0";
  build = "2";

  src = fetchurl {
    url = "http://popcorntime.ag/download.php?file=popcorn-time-community-v${version}-${build}-${arch}.tar.xz";
    sha256 =
      if arch == "l64"
      then "0a68d0a81d8e97c94afa0c75209056ee4b8486f400854c952bd3ad7251bd80c9"
      else "b311c312a29d408a7c661a271d1f3a8fc83865d8a204cf026ee87e9ac173874d";
  };

  dontPatchELF = true;
  sourceRoot = ".";
  buildInputs  = [ zip makeWrapper ];

  buildPhase = ''
    rm Popcorn-Time
    cat ${nwjs}/bin/nw nw.pak > Popcorn-Time
    chmod 555 Popcorn-Time
  '';

  installPhase = ''
    mkdir -p $out/bin
    cp -r * $out/
    makeWrapper $out/Popcorn-Time $out/bin/popcorntime
  '';

  meta = with stdenv.lib; {
    homepage = https://popcorntime.sh/;
    description = "An application that streams movies and TV shows from torrents";
    license = stdenv.lib.licenses.gpl3;
    platforms = platforms.linux;
    maintainers = with maintainers; [ bobvanderlinden rnhmjoj ];
    broken = true;
  };
}
{'fraction_non_alphanumeric': 0.1337142857142857, 'fraction_numerical': 0.08228571428571428, 'mean_word_length': 3.3119868637110015, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '3393182', 'n_tokens_mistral': 1160, 'n_tokens_neox': 1017, 'n_words': 199}