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

  buildInputs = map (n: builtins.getAttr n x)
    (builtins.attrNames (builtins.removeAttrs x helperArgNames));
  sourceInfo = rec {
    baseName="altermime";
    version="0.3.10";
    name="${baseName}-${version}";
    url="http://www.pldaniels.com/${baseName}/${name}.tar.gz";
    hash="0vn3vmbcimv0n14khxr1782m76983zz9sf4j2kz5v86lammxld43";
  };
in
rec {
  src = a.fetchurl {
    url = sourceInfo.url;
    sha256 = sourceInfo.hash;
  };

  inherit (sourceInfo) name version;
  inherit buildInputs;

  patches = map a.fetchurl (import ./debian-patches.nix);

  phaseNames = ["doPatch" "fixTarget" "doMakeInstall"];
  fixTarget = a.fullDepEntry (''
    sed -i Makefile -e "s@/usr/local@$out@"
    mkdir -p "$out/bin"
  '') ["doUnpack" "minInit" "defEnsureDir"];
      
  meta = {
    description = "MIME alteration tool";
    maintainers = with a.lib.maintainers;
    [
      raskin
    ];
    platforms = with a.lib.platforms;
      linux;
  };
  passthru = {
    updateInfo = {
      downloadPage = "http://www.pldaniels.com/altermime/";
    };
  };
}) x
<commit_msg>Allow autoupdates for altermime<commit_after>x@{builderDefsPackage
  
  , ...}:
builderDefsPackage
(a :  
let 
  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
    [];

  buildInputs = map (n: builtins.getAttr n x)
    (builtins.attrNames (builtins.removeAttrs x helperArgNames));
  sourceInfo = rec {
    baseName="altermime";
    version="0.3.10";
    name="${baseName}-${version}";
    url="http://www.pldaniels.com/${baseName}/${name}.tar.gz";
    hash="0vn3vmbcimv0n14khxr1782m76983zz9sf4j2kz5v86lammxld43";
  };
in
rec {
  src = a.fetchurl {
    url = sourceInfo.url;
    sha256 = sourceInfo.hash;
  };

  inherit (sourceInfo) name version;
  inherit buildInputs;

  patches = map a.fetchurl (import ./debian-patches.nix);

  phaseNames = ["doPatch" "fixTarget" "doMakeInstall"];
  fixTarget = a.fullDepEntry (''
    sed -i Makefile -e "s@/usr/local@$out@"
    mkdir -p "$out/bin"
  '') ["doUnpack" "minInit" "defEnsureDir"];
      
  meta = {
    description = "MIME alteration tool";
    maintainers = with a.lib.maintainers;
    [
      raskin
    ];
    platforms = with a.lib.platforms;
      linux;
    downloadPage = "http://www.pldaniels.com/altermime/";
    inherit version;
    updateWalker = true;
  };
}) x

{'fraction_non_alphanumeric': 0.1559967585089141, 'fraction_numerical': 0.023500810372771474, 'mean_word_length': 3.149579831932773, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5703932', 'n_tokens_mistral': 959, 'n_tokens_neox': 927, 'n_words': 163}