<commit_before>x@{builderDefsPackage
  , unzip, texLive, texLiveCMSuper, texLiveAggregationFun
  , ...}:
builderDefsPackage
(a :  
let 
  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
    ["texLive" "texLiveCMSuper" "texLiveAggregationFun"];

  buildInputs = map (n: builtins.getAttr n x)
    (builtins.attrNames (builtins.removeAttrs x helperArgNames))
    ++ [(a.texLiveAggregationFun {paths=[a.texLive a.texLiveCMSuper];})];
  sourceInfo = rec {
    baseName="disser";
    version="1.1.8";
    name="${baseName}-${version}";
    project="${baseName}";
    url="mirror://sourceforge/project/${project}/${baseName}/${version}/${name}.zip";
    hash="15509hfcvkk5kfcza149c74qpamwgw88dg0ra749axs8xj8qmlw8";
  };
in
rec {
  src = a.fetchurl {
    url = sourceInfo.url;
    sha256 = sourceInfo.hash;
  };

  inherit (sourceInfo) name version;
  inherit buildInputs;

  /* doConfigure should be removed if not needed */
  phaseNames = ["setVars" "doMakeInstall"];

  setVars = a.noDepEntry ''
    export HOME="$TMPDIR"
  '';

  makeFlags = ["DESTDIR=$out/share/texmf-dist"];
      
  meta = {
    description = "Russian PhD thesis LaTeX package";
    maintainers = with a.lib.maintainers;
    [
      raskin
    ];
    platforms = with a.lib.platforms;
      linux; # platform-independent<commit_msg>Update TeX-disser thesis template for Russian styles<commit_after>x@{builderDefsPackage
  , unzip, texLive, texLiveCMSuper, texLiveAggregationFun
  , ...}:
builderDefsPackage
(a :  
let 
  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
    ["texLive" "texLiveCMSuper" "texLiveAggregationFun"];

  buildInputs = map (n: builtins.getAttr n x)
    (builtins.attrNames (builtins.removeAttrs x helperArgNames))
    ++ [(a.texLiveAggregationFun {paths=[a.texLive a.texLiveCMSuper];})];
  sourceInfo = rec {
    baseName="disser";
    version="1.3.0";
    name="${baseName}-${version}";
    project="${baseName}";
    url="mirror://sourceforge/project/${project}/${baseName}/${version}/${name}.zip";
    hash="1iab3va6xw53l8xzmd83kbnzqah9f6imzzfd3c2054q53p0ndlim";
  };
in
rec {
  src = a.fetchurl {
    url = sourceInfo.url;
    sha256 = sourceInfo.hash;
  };

  inherit (sourceInfo) name version;
  inherit buildInputs;

  /* doConfigure should be removed if not needed */
  phaseNames = ["setVars" "doMakeInstall"];

  setVars = a.noDepEntry ''
    export HOME="$TMPDIR"
  '';

  makeFlags = ["DESTDIR=$out/share/texmf-dist"];
      
  meta = {
    description = "Russian PhD thesis LaTeX package";
    maintainers = with a.lib.maintainers;
    [
      raskin
    ];
    platforms = with a.lib.platforms;
      linux; # platform-independent
{'fraction_non_alphanumeric': 0.14660667416572928, 'fraction_numerical': 0.018747656542932135, 'mean_word_length': 3.781362007168459, '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': '4323625', 'n_tokens_mistral': 967, 'n_tokens_neox': 925, 'n_words': 169}