<commit_before>{ stdenv, fetchurl, xlibsWrapper, imake, libXScrnSaver, scrnsaverproto }:

stdenv.mkDerivation rec {
  name = "xautolock-2.2";
  src = fetchurl {
    url = "https://www.ibiblio.org/pub/Linux/X11/screensavers/${name}.tgz";
    sha256 = "11f0275175634e6db756e96f5713ec91b8b1c41f8663df54e8a5d27dc71c4da2";
  };
  patches = [
    # https://gist.github.com/miekg/9430422
    (fetchurl {
      url = "https://gist.githubusercontent.com/miekg/9430422/raw/f00965cd63c497d320f028a9972d1185b0dae039/14-add-lockaftersleep-patch";
      sha256 = "042lc5yyyl3zszll2l930apysd0lip26w0d0f0gjkl7sbhshgk8v";
    })
  ];
  NIX_CFLAGS_COMPILE = "-DSYSV";
  makeFlags="BINDIR=\${out}/bin MANPATH=\${out}/man";
  preBuild = "xmkmf";
  installTargets = "install install.man";
  buildInputs = [xlibsWrapper imake libXScrnSaver scrnsaverproto];
  meta = with stdenv.lib; {
    description = "A program that launches a given program when your X session has been idle for a given time.";
    homepage = http://www.ibiblio.org/pub/linux/X11/screensavers;
    maintainers = with maintainers; [ garbas ];
    platforms = platforms.linux;
    license = licenses.gpl2;
  };
}<commit_msg>xautolock: use imake setup hook<commit_after>{ stdenv, fetchurl, xlibsWrapper
, imake, gccmakedep, libXScrnSaver, scrnsaverproto }:

stdenv.mkDerivation rec {
  name = "xautolock-2.2";
  src = fetchurl {
    url = "https://www.ibiblio.org/pub/Linux/X11/screensavers/${name}.tgz";
    sha256 = "11f0275175634e6db756e96f5713ec91b8b1c41f8663df54e8a5d27dc71c4da2";
  };
  patches = [
    # https://gist.github.com/miekg/9430422
    (fetchurl {
      url = "https://gist.githubusercontent.com/miekg/9430422/raw/f00965cd63c497d320f028a9972d1185b0dae039/14-add-lockaftersleep-patch";
      sha256 = "042lc5yyyl3zszll2l930apysd0lip26w0d0f0gjkl7sbhshgk8v";
    })
  ];
  NIX_CFLAGS_COMPILE = "-DSYSV";
  makeFlags = [
    "BINDIR=$(out)/bin"
    "MANPATH=$(out)/share/man"
  ];
  installTargets = "install install.man";
  nativeBuildInputs = [ imake gccmakedep ];
  buildInputs = [ xlibsWrapper libXScrnSaver scrnsaverproto ];
  meta = with stdenv.lib; {
    description = "A program that launches a given program when your X session has been idle for a given time.";
    homepage = http://www.ibiblio.org/pub/linux/X11/screensavers;
    maintainers = with maintainers; [ garbas ];
    platforms = platforms.linux;
    license = licenses.gpl2;
  };
}
{'fraction_non_alphanumeric': 0.12650352550808794, 'fraction_numerical': 0.09622563251762754, 'mean_word_length': 4.067226890756302, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, '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': '7140520', 'n_tokens_mistral': 1085, 'n_tokens_neox': 961, 'n_words': 146}