ocamlPackages.frama-c: init at 31.0

This commit is contained in:
redianthus
2025-12-11 16:13:21 +01:00
parent d4b9671d01
commit 5b57a7da12
2 changed files with 47 additions and 0 deletions
@@ -0,0 +1,43 @@
{
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
View File
@@ -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;
};