Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

83 lines
1.3 KiB
Nix

{
lib,
buildDunePackage,
fetchFromGitLab,
clang,
libclang,
libllvm,
flint,
mpfr,
pplite,
ocaml,
menhir,
apron,
arg-complete,
camlidl,
yojson,
zarith,
}:
buildDunePackage rec {
pname = "mopsa";
version = "1.1";
minimalOCamlVersion = "4.13";
src = fetchFromGitLab {
owner = "mopsa";
repo = "mopsa-analyzer";
tag = "v${version}";
hash = "sha256-lO5dtGAl1dq8oJco/hPXrAbN05rKc62Zrci/8CLrQ0c=";
};
nativeBuildInputs = [
clang
libllvm
menhir
];
buildInputs = [
arg-complete
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 = "Modular and Open Platform for Static Analysis using Abstract Interpretation";
maintainers = [ lib.maintainers.vbgl ];
};
}