anchor.diff:      description = "Carrier - PidginIM GUI fork with user-friendly development model";
       homepage = http://funpidgin.sf.net; 
     };
  -}
  +} // (if externalPurple2 then {
  +  postInstall = FullDepEntry (''
  +      ensureDir $out/lib/purple-2
  +      cp ${args.purple2Source}/lib/purple-2/* $out/lib/purple-2/
  +    '') ["minInit" "defEnsureDir"]; }
  +  else {})
   
  +
  
positive.code:   optional: purple2Source: purple-2 source - place to copy libpurple from 
      (to use a fresher pidgin build)
  */
  rec {
    src = fetchurl {
      url = http://downloads.sourceforge.net/funpidgin/carrier-2.4.2.tar.bz2;
  
negative.code:     export echo=echo
    '') [];
  
    /* doConfigure should be specified separately */
    phaseNames = ["doConfigure" "preBuild" "doMakeInstall"]
      ++ (lib.optional externalPurple2 "postInstall")
    ;
        
    name = "carrier-" + version;
  