anchor.diff:    buildInputs = [ qt4 openssl ];
   
     # /dev/null is used when linking which is a impure path for the wrapper
  -  preConfigure =
  +  postPatch =
       ''
  -      sed -i 's@,/dev/null@@' configure
         patchShebangs configure
  +      substituteInPlace configure --replace ",/dev/null" ""
       '';
  +
  +  enableParallelBuilding = false; # fails to build if true
   
     # --unresolved-symbols=ignore-in-shared-libs makes ld no longer find --library=yate? Why?
     preBuild =
  
positive.code:     homepage = "http://yate.null.ro/";
      # Yate's license is GPL with an exception for linking with
      # OpenH323 and PWlib (licensed under MPL).
      license = ["GPL" "MPL"];
      maintainers = [ lib.maintainers.marcweber ];
      platforms = [ "i686-linux" "x86_64-linux" ];
    };
  
negative.code: 
  stdenv.mkDerivation rec {
    pname = "yate";
    version = "6.4.0-1";
  
    src = fetchurl {
      url = "http://voip.null.ro/tarballs/yate${lib.versions.major version}/${pname}-${version}.tar.gz";
      hash = "sha256-jCPca/+/jUeNs6hZZLUBl3HI9sms9SIPNGVRanSKA7A=";
    };
  
    # TODO zaptel ? postgres ?
  