mopsa: init at 1.0

This commit is contained in:
Vincent Laporte 2024-07-23 15:50:02 +02:00 committed by Vincent Laporte
parent 130e852f92
commit 5622ff23c9
3 changed files with 84 additions and 0 deletions

View File

@ -0,0 +1,80 @@
{
lib,
buildDunePackage,
fetchFromGitLab,
clang,
libclang,
libllvm,
flint,
mpfr,
pplite,
ocaml,
menhir,
apron,
camlidl,
yojson,
zarith,
}:
buildDunePackage rec {
pname = "mopsa";
version = "1.0";
minimalOCamlVersion = "4.12";
src = fetchFromGitLab {
owner = "mopsa";
repo = "mopsa-analyzer";
rev = "v${version}";
hash = "sha256-nGnWwV7g3SYgShbXGUMooyOdFwXFrQHnQvlc8x9TAS4=";
};
nativeBuildInputs = [
clang
libllvm
menhir
];
buildInputs = [
camlidl
flint
libclang
mpfr
pplite
];
propagatedBuildInputs = [
apron
yojson
zarith
];
postPatch = ''
patchShebangs bin
'';
buildPhase = ''
runHook preBuild
dune build --profile release -p mopsa
runHook postBuild
'';
installPhase = ''
runHook preInstall
dune install --profile release --prefix=$bin --libdir=$out/lib/ocaml/${ocaml.version}/site-lib
runHook postInstall
'';
outputs = [
"bin"
"out"
];
meta = {
license = lib.licenses.lgpl3Plus;
homepage = "https://mopsa.lip6.fr/";
description = "A Modular and Open Platform for Static Analysis using Abstract Interpretation";
maintainers = [ lib.maintainers.vbgl ];
};
}

View File

@ -18810,6 +18810,8 @@ with pkgs;
moon = callPackage ../development/tools/build-managers/moon/default.nix { };
mopsa = ocamlPackages.mopsa.bin;
msgpack-tools = callPackage ../development/tools/msgpack-tools { };
msgpuck = callPackage ../development/libraries/msgpuck { };

View File

@ -1181,6 +1181,8 @@ let
mmap = callPackage ../development/ocaml-modules/mmap { };
mopsa = callPackage ../development/ocaml-modules/mopsa { };
morbig = callPackage ../development/ocaml-modules/morbig { };
mparser = callPackage ../development/ocaml-modules/mparser { };