Commit 5b57a7da authored by redianthus's avatar redianthus
Browse files

ocamlPackages.frama-c: init at 31.0

parent d4b9671d
Loading
Loading
Loading
Loading
+43 −0
Original line number Diff line number Diff line
{
  stdenv,
  pkgs,
  ocaml,
  findlib,
  framac,
  camlzip,
  ocamlgraph,
  menhirLib,
  ppx_deriving,
  yaml,
  yojson,
  zarith,
}:

stdenv.mkDerivation {
  pname = "ocaml${ocaml.version}-frama-c";
  inherit (framac) version meta;

  dontUnpack = true;

  buildInputs = [ findlib ];

  propagatedBuildInputs = [
    camlzip
    menhirLib
    ocamlgraph
    ppx_deriving
    yaml
    yojson
    zarith
  ];

  installPhase = ''
    runHook preInstall
    mkdir -p $OCAMLFIND_DESTDIR
    for p in ${framac}/lib/*
    do
      ln -s $p $OCAMLFIND_DESTDIR/
    done
    runHook postInstall
  '';
}
+4 −0
Original line number Diff line number Diff line
@@ -649,6 +649,10 @@ let

        fpath = callPackage ../development/ocaml-modules/fpath { };

        frama-c = callPackage ../development/ocaml-modules/frama-c {
          framac = pkgs.framac.override { ocamlPackages = self; };
        };

        frei0r = callPackage ../development/ocaml-modules/frei0r {
          inherit (pkgs) frei0r;
        };