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