<commit_before>{ stdenv, agda, fetchgit, ghcWithPackages }:

agda.mkDerivation (self: rec {
  version = "2.4.2.3";
  name = "agda-stdlib-${version}";

  src = fetchgit {
    url = "git://github.com/agda/agda-stdlib";
    rev = "9c9b3cb28f9a7d39a256890a1469c1a3f7fc4faf";
    sha256 = "521899b820e70abbae7cb30008b87a2f8676bc6265b78865e42982fc2e5c972f";
  };

  nativeBuildInputs = [ (ghcWithPackages (self : [ self.filemanip ])) ];
  preConfigure = ''
    runhaskell GenerateEverything.hs
  '';

  topSourceDirectories = [ "src" ];

  meta = with stdenv.lib; {
    homepage = "http://wiki.portal.chalmers.se/agda/pmwiki.php?n=Libraries.StandardLibrary";
    description = "A standard library for use with the Agda compiler";
    license = stdenv.lib.licenses.mit;
    platforms = stdenv.lib.platforms.unix;
    maintainers = with maintainers; [ jwiegley fuuzetsu ];
  };
})<commit_msg>agda-stdlib: 2.4.2.3 -> v0.12 (for Agda-2.5.1)<commit_after>{ stdenv, agda, fetchurl, ghcWithPackages }:

agda.mkDerivation (self: rec {
  version = "v0.12";
  name = "agda-stdlib-${version}";

  src = fetchurl {
    url = "https://github.com/agda/agda-stdlib/archive/${version}.tar.gz";
    sha256 = "11qf87hxx3g0n8i6nkp4vqvh3i0gal6g812p0w2n4k7711nvrp9g";
  };

  nativeBuildInputs = [ (ghcWithPackages (self : [ self.filemanip ])) ];
  preConfigure = ''
    runhaskell GenerateEverything.hs
  '';

  topSourceDirectories = [ "src" ];

  meta = with stdenv.lib; {
    homepage = "http://wiki.portal.chalmers.se/agda/pmwiki.php?n=Libraries.StandardLibrary";
    description = "A standard library for use with the Agda compiler";
    license = stdenv.lib.licenses.mit;
    platforms = stdenv.lib.platforms.unix;
    maintainers = with maintainers; [ jwiegley fuuzetsu mudri ];
  };
})
{'fraction_non_alphanumeric': 0.14374646293152235, 'fraction_numerical': 0.06338426711941143, 'mean_word_length': 3.8705234159779613, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '527393', 'n_tokens_mistral': 757, 'n_tokens_neox': 700, 'n_words': 109}