2014-12-17 19:11:30 +01:00
|
|
|
{ stdenv, fetchurl, coq, ocaml, ocamlPackages }:
|
2014-05-02 02:09:37 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "compcert-${version}";
|
2014-10-06 00:07:34 +02:00
|
|
|
version = "2.4";
|
2014-05-02 02:09:37 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://compcert.inria.fr/release/${name}.tgz";
|
2014-10-06 00:07:34 +02:00
|
|
|
sha256 = "1qrb1cplx3v5wxn1c46kx67v1j52yznvjm2hkrsdybphhki2pyia";
|
2014-05-02 02:09:37 +02:00
|
|
|
};
|
|
|
|
|
2014-06-08 14:49:27 +02:00
|
|
|
buildInputs = [ coq ocaml ocamlPackages.menhir ];
|
2014-05-02 02:09:37 +02:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2014-12-17 19:11:30 +01:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
substituteInPlace ./configure --replace '{toolprefix}gcc' '{toolprefix}cc'
|
|
|
|
./configure -prefix $out -toolprefix ${stdenv.cc}/bin/ '' +
|
2014-07-01 23:43:27 +02:00
|
|
|
(if stdenv.isDarwin then "ia32-macosx" else "ia32-linux");
|
2014-05-02 02:09:37 +02:00
|
|
|
|
2014-10-06 00:07:34 +02:00
|
|
|
meta = with stdenv.lib; {
|
2014-05-02 02:09:37 +02:00
|
|
|
description = "Formally verified C compiler";
|
|
|
|
homepage = "http://compcert.inria.fr";
|
2014-10-06 00:07:34 +02:00
|
|
|
license = licenses.inria;
|
|
|
|
platforms = platforms.linux ++
|
|
|
|
platforms.darwin;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice jwiegley vbgl ];
|
2014-05-02 02:09:37 +02:00
|
|
|
};
|
|
|
|
}
|