anchor.diff:      preBuild ? "",
       postBuild ? "",
       workspaceDependencies ? [], # List of yarn packages
  +    packageResolutions ? {},
     }:
       let
         extraBuildInputs = (lib.flatten (builtins.map (key:
  
positive.code: 
        workspaceJSON = pkgs.writeText
          "${name}-workspace-package.json"
          (builtins.toJSON { private = true; workspaces = ["deps/**"]; }); # scoped packages need second splat
  
        workspaceDependencyLinks = lib.concatMapStringsSep "\n"
          (dep: ''
  
negative.code:         preBuild = yarnPreBuild;
          postBuild = yarnPostBuild;
          workspaceDependencies = workspaceDependenciesTransitive;
          inherit packageJSON pname version yarnLock offlineCache yarnFlags pkgConfig packageResolutions;
        };
  
        publishBinsFor_ = unlessNull publishBinsFor [pname];
  