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;
|
2014-07-01 23:43:27 +02:00
|
|
|
configurePhase = "./configure -prefix $out -toolprefix ${gcc}/bin/ " +
|
|
|
|
(if stdenv.isDarwin then "ia32-macosx" else "ia32-linux");
|
2014-05-02 02:09:37 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Formally verified C compiler";
|
|
|
|
homepage = "http://compcert.inria.fr";
|
|
|
|
license = stdenv.lib.licenses.inria;
|
2014-07-02 00:01:11 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux ++
|
|
|
|
stdenv.lib.platforms.darwin;
|
2014-07-01 23:43:27 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice
|
|
|
|
stdenv.lib.maintainers.jwiegley ];
|
2014-05-02 02:09:37 +02:00
|
|
|
};
|
|
|
|
}
|