<commit_before>{stdenv, fetchurl, attr, perl}:

assert stdenv.isLinux;

stdenv.mkDerivation {
  name = "libcap-2.19";
  
  src = fetchurl {
    url = mirror://kernel/linux/libs/security/linux-privs/kernel-2.6/libcap-2.19.tar.gz;
    sha256 = "0fdsz9j741npvh222f8p1y6l516z9liibiwdpdr3a4zg53m0pw45";
  };
  
  buildNativeInputs = [perl];
  buildInputs = [attr];

  preBuild = ''
    makeFlagsArray=(LIBDIR=$out/lib INCDIR=$out/include SBINDIR=$out/sbin MANDIR=$out/man PAM_CAP=no)
  '';<commit_msg>libcap: with pam, just set prefix and lib<commit_after>{stdenv, fetchurl, attr, perl, pam}:

assert stdenv.isLinux;

stdenv.mkDerivation {
  name = "libcap-2.19";
  
  src = fetchurl {
    url = mirror://kernel/linux/libs/security/linux-privs/kernel-2.6/libcap-2.19.tar.gz;
    sha256 = "0fdsz9j741npvh222f8p1y6l516z9liibiwdpdr3a4zg53m0pw45";
  };
  
  buildNativeInputs = [perl];
  buildInputs = [attr pam];

  makeFlags = "PAM_CAP=yes lib=lib prefix=$(out)";
{'fraction_non_alphanumeric': 0.14748953974895398, 'fraction_numerical': 0.06903765690376569, 'mean_word_length': 4.201086956521739, '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': '3820342', 'n_tokens_mistral': 441, 'n_tokens_neox': 410, 'n_words': 57}