2014-06-08 05:49:27 -07:00
|
|
|
{ stdenv, fetchurl, coq, ocaml, ocamlPackages, gcc }:
|
2014-05-01 17:09:37 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "compcert-${version}";
|
2014-06-06 21:09:47 -07:00
|
|
|
version = "2.3pl2";
|
2014-05-01 17:09:37 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://compcert.inria.fr/release/${name}.tgz";
|
2014-06-06 21:09:47 -07:00
|
|
|
sha256 = "1cq4my646ll1mszs5mbzwk4vp8l8qnsc96fpcv2pl35aw5i6jqm8";
|
2014-05-01 17:09:37 -07:00
|
|
|
};
|
|
|
|
|
2014-06-08 05:49:27 -07:00
|
|
|
buildInputs = [ coq ocaml ocamlPackages.menhir ];
|
2014-05-01 17:09:37 -07:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
configurePhase = "./configure -prefix $out -toolprefix ${gcc}/bin/ ia32-linux";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Formally verified C compiler";
|
|
|
|
homepage = "http://compcert.inria.fr";
|
|
|
|
license = stdenv.lib.licenses.inria;
|
2014-05-02 11:21:50 -07:00
|
|
|
platforms = [ "i686-linux" ];
|
2014-05-01 17:09:37 -07:00
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|