2014-06-08 14:49:27 +02:00
|
|
|
{ stdenv, fetchurl, coq, ocaml, ocamlPackages, gcc }:
|
2014-05-02 02:09:37 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "compcert-${version}";
|
2014-06-07 06:09:47 +02:00
|
|
|
version = "2.3pl2";
|
2014-05-02 02:09:37 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://compcert.inria.fr/release/${name}.tgz";
|
2014-06-07 06:09:47 +02:00
|
|
|
sha256 = "1cq4my646ll1mszs5mbzwk4vp8l8qnsc96fpcv2pl35aw5i6jqm8";
|
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;
|
|
|
|
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 20:21:50 +02:00
|
|
|
platforms = [ "i686-linux" ];
|
2014-05-02 02:09:37 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|