{ stdenv, fetchurl }:
        
stdenv.mkDerivation rec {
  name = "yap-5.1.1";

  src = fetchurl {
    url = "mirror://sourceforge/yap/Yap-5.1.1.tar.gz";
    sha256 = "0bajxmlla9gay4m4l7y7x6qldxzi0jcq2ykgpjk9liky7g5kbnya";
  };

  meta = { 
    description = "Yap Prolog System is a ISO-compatible high-performance Prolog compiler";
    homepage = http://yap.sourceforge.net/;
    license = "artistic";
  };
}

{ stdenv, fetchurl, readline }:

stdenv.mkDerivation rec {
  version = "6.2.2";
  name = "yap-${version}";

  src = fetchurl {
    url = "http://www.dcc.fc.up.pt/~vsc/Yap/${name}.tar.gz";
    sha256 = "0l6p0vy667wws64cvwf74ssl6h9gypjzrsl3b2d32hs422186pzi";
  };

  buildInputs = [ readline ];

  meta = { 
    description = "Yap Prolog System is a ISO-compatible high-performance Prolog compiler";
    homepage = http://yap.sourceforge.net/;
    license = "artistic";
  };
}

Update YAP to version 6.2.2
Update YAP to version 6.2.2
