anchor.diff: -{ go, govers, parallel, lib, fetchgit, fetchhg, rsync }:
  +{ go, govers, parallel, lib, fetchgit, fetchhg, rsync, removeReferencesTo }:
   
   { name, buildInputs ? [], nativeBuildInputs ? [], passthru ? {}, preFixup ? ""
   
  
positive.code: 
    removeReferences = [ ] ++ lib.optional (!allowGoReference) go;
  
    removeExpr = refs: lib.flip lib.concatMapStrings refs (ref: ''
      | sed "s,${ref},$(echo "${ref}" | sed "s,$NIX_STORE/[^-]*,$NIX_STORE/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee,"),g" \
    '');
  
    dep2src = goDep:
      {
  
negative.code:   (builtins.removeAttrs args [ "goPackageAliases" "disabled" ]) // {
  
    inherit name;
    nativeBuildInputs = [ removeReferencesTo go parallel ]
      ++ (lib.optional (!dontRenameImports) govers) ++ nativeBuildInputs;
    buildInputs = [ go ] ++ buildInputs;
  
  