anchor.diff:        repo = "UltraStar-Manager";
         inherit rev sha256;
       };
  -    in stdenv.mkDerivation {
  +    in mkDerivation {
         name = "${src.name}-patched";
         inherit src;
         phases = [ "unpackPhase" "patchPhase" ];
   
  -      patchPhase = with stdenv.lib; ''
  +      patchPhase = with lib; ''
           # we don’t want prebuild binaries checked into version control!
           rm -rf lib include
   
  
positive.code:       paths = map buildPlugin plugins;
      };
  
  in stdenv.mkDerivation {
    pname = "ultrastar-manager";
    inherit version;
    src = patchedSrc;
  
negative.code:     sed -e "s|QCore.*applicationDirPath()|QString(\"${path}\")|" -i "${file}"
    '';
  
    buildPlugin = name: mkDerivation {
      name = "ultrastar-manager-${name}-plugin-${version}";
      src = patchedSrc;
  
  