anchor.diff:        mkdir -p $out/debs
         find . -name "*.deb" -exec cp {} $out/debs \;
   
  +      eval "$postInstall"
  +    '';
  +
  +    debInstallPhase = ''
  +      eval "$preDebInstall"
  +
         [ "$(echo $out/debs/*.deb)" != "" ]
   
         for i in $out/debs/*.deb; do
  
positive.code: vmTools.runInLinuxImage (stdenv.mkDerivation (
  
    {
      doCheck = true;
  
      prefix = "/usr";
  
      prePhases = "installExtraDebsPhase sysInfoPhase";
    }
  
    // removeAttrs args ["vmTools"] //
  
    {
      name = name + "-" + diskImage.name + (if src ? version then "-" + src.version else "");
  
      # !!! cut&paste from rpm-build.nix
      postHook = ''
  
negative.code:         echo "file deb-extra $(ls $i/debs/*.deb | sort | head -1)" >> $out/nix-support/hydra-build-products
        done
  
        eval "$postDebInstall"
      ''; # */
  
      meta = (if args ? meta then args.meta else {}) // {
        description = "Deb package for ${diskImage.fullName}";
      };
    } // removeAttrs args ["name" "meta" "vmTools"]
  
  ))
  