<commit_before>{ stdenv
, fetchurl
, xorg
}:

stdenv.mkDerivation rec {
  name = "slock-1.4";

  src = fetchurl {
    url = "http://dl.suckless.org/tools/${name}.tar.gz";
    multihash = "QmV5qxQGYjmqECgphJfaYYAxHBfuSGXU2KqHtTi4Kt9hxF";
    sha256 = "b53849dbc60109a987d7a49b8da197305c29307fd74c12dc18af0d3044392e6a";
  };

  buildInputs = [
    xorg.libX11
    xorg.libXext
    xorg.libXrandr
    xorg.libXrender
    xorg.randrproto
    xorg.renderproto
    xorg.xproto
  ];

  # Don't setuid as nixbuild doesn't allow this
  postPatch = ''
    sed -i '/chmod u+s/d' Makefile
  '';

  preInstall = ''
    installFlagsArray+=("PREFIX=$out")
  '';

  meta = with stdenv.lib; {
    homepage = http://tools.suckless.org/slock;
    description = "Simple X display locker";
    license = licenses.mit;
    maintainers = with maintainers; [
      wkennington
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}<commit_msg>slock: update xorg references<commit_after>{ stdenv
, fetchurl
, lib

, libx11
, libxext
, libxrandr
, libxrender
, xorgproto
}:

stdenv.mkDerivation rec {
  name = "slock-1.4";

  src = fetchurl {
    url = "http://dl.suckless.org/tools/${name}.tar.gz";
    multihash = "QmV5qxQGYjmqECgphJfaYYAxHBfuSGXU2KqHtTi4Kt9hxF";
    sha256 = "b53849dbc60109a987d7a49b8da197305c29307fd74c12dc18af0d3044392e6a";
  };

  buildInputs = [
    libx11
    libxext
    libxrandr
    libxrender
    xorgproto
  ];

  # Don't setuid as nixbuild doesn't allow this
  postPatch = ''
    sed -i '/chmod u+s/d' Makefile
  '';

  preInstall = ''
    installFlagsArray+=("PREFIX=$out")
  '';

  meta = with lib; {
    homepage = http://tools.suckless.org/slock;
    description = "Simple X display locker";
    license = licenses.mit;
    maintainers = with maintainers; [
      wkennington
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}
{'fraction_non_alphanumeric': 0.12244897959183673, 'fraction_numerical': 0.06337271750805586, 'mean_word_length': 3.023758099352052, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '4718646', 'n_tokens_mistral': 829, 'n_tokens_neox': 752, 'n_words': 124}