<commit_before>{ stdenv, fetchurl, autoreconfHook, intltool, perl, perlPackages, libxml2
, pciutils, pkgconfig, gtk2, ddccontrol-db
}:

let version = "0.4.2"; in
stdenv.mkDerivation {
  name = "ddccontrol-${version}";

  src = fetchurl {
    url = "mirror://sourceforge/ddccontrol/ddccontrol-${version}.tar.bz2";
    sha1 = "fd5c53286315a61a18697a950e63ed0c8d5acff1";
  };

  nativeBuildInputs = [ autoreconfHook intltool pkgconfig ];

  buildInputs = [
    perl perlPackages.libxml_perl libxml2 pciutils gtk2 ddccontrol-db
  ];

  patches = [ ./automake.patch ];

  hardeningDisable = [ "format" "bindnow" ];

  prePatch = ''
      newPath=$(echo "${ddccontrol-db}/share/ddccontrol-db" | sed "s/\\//\\\\\\//g")
      mv configure.ac configure.ac.old
      oldPath="\$"
      oldPath+="{datadir}\/ddccontrol-db"
      sed "s/$oldPath/$newPath/" <configure.ac.old >configure.ac
      rm configure.ac.old

      sed -e "s/chmod 4711/chmod 0711/" -i src/ddcpci/Makefile*
  '';

  meta = with stdenv.lib; {
    description = "A program used to control monitor parameters by software";
    homepage = http://ddccontrol.sourceforge.net/;
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = [ stdenv.lib.maintainers.pakhfn ];
  };
}

<commit_msg>ddccontrol: Mark x86-only<commit_after>{ stdenv, fetchurl, autoreconfHook, intltool, perl, perlPackages, libxml2
, pciutils, pkgconfig, gtk2, ddccontrol-db
}:

let version = "0.4.2"; in
stdenv.mkDerivation {
  name = "ddccontrol-${version}";

  src = fetchurl {
    url = "mirror://sourceforge/ddccontrol/ddccontrol-${version}.tar.bz2";
    sha1 = "fd5c53286315a61a18697a950e63ed0c8d5acff1";
  };

  nativeBuildInputs = [ autoreconfHook intltool pkgconfig ];

  buildInputs = [
    perl perlPackages.libxml_perl libxml2 pciutils gtk2 ddccontrol-db
  ];

  patches = [ ./automake.patch ];

  hardeningDisable = [ "format" "bindnow" ];

  prePatch = ''
      newPath=$(echo "${ddccontrol-db}/share/ddccontrol-db" | sed "s/\\//\\\\\\//g")
      mv configure.ac configure.ac.old
      oldPath="\$"
      oldPath+="{datadir}\/ddccontrol-db"
      sed "s/$oldPath/$newPath/" <configure.ac.old >configure.ac
      rm configure.ac.old

      sed -e "s/chmod 4711/chmod 0711/" -i src/ddcpci/Makefile*
  '';

  meta = with stdenv.lib; {
    description = "A program used to control monitor parameters by software";
    homepage = http://ddccontrol.sourceforge.net/;
    license = licenses.gpl2;
    platforms = [ "i686-linux" "x86_64-linux" ];
    maintainers = [ stdenv.lib.maintainers.pakhfn ];
  };
}


{'fraction_non_alphanumeric': 0.15105386416861827, 'fraction_numerical': 0.03708040593286495, 'mean_word_length': 3.2574750830564785, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '2963135', 'n_tokens_mistral': 1020, 'n_tokens_neox': 945, 'n_words': 173}