107 lines
1.8 KiB
Nix
107 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildDunePackage,
|
|
ocaml,
|
|
fetchFromGitHub,
|
|
menhir,
|
|
darwin,
|
|
bitwuzla-cxx,
|
|
bos,
|
|
cmdliner,
|
|
dolmen_model,
|
|
dolmen_type,
|
|
dune-build-info,
|
|
dune-site,
|
|
fpath,
|
|
hc,
|
|
menhirLib,
|
|
mtime,
|
|
# fix eval on legacy ocaml versions
|
|
ocaml_intrinsics ? null,
|
|
prelude,
|
|
ppx_enumerate,
|
|
scfg,
|
|
yojson,
|
|
z3,
|
|
zarith,
|
|
mdx,
|
|
ounit2,
|
|
}:
|
|
|
|
buildDunePackage (finalAttrs: {
|
|
pname = "smtml";
|
|
version = "0.28.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "formalsec";
|
|
repo = "smtml";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-TZMBUnw1AtsVUfLLQJ/gs0CBtnphBiREH99QP3VuAL0=";
|
|
};
|
|
|
|
minimalOCamlVersion = "4.14";
|
|
|
|
nativeBuildInputs = [
|
|
menhir
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
darwin.sigtool
|
|
];
|
|
|
|
buildInputs = [
|
|
dune-build-info
|
|
dune-site
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
bitwuzla-cxx
|
|
bos
|
|
cmdliner
|
|
dolmen_model
|
|
dolmen_type
|
|
fpath
|
|
hc
|
|
menhirLib
|
|
mtime
|
|
ocaml_intrinsics
|
|
ppx_enumerate
|
|
prelude
|
|
scfg
|
|
yojson
|
|
z3
|
|
zarith
|
|
];
|
|
|
|
checkInputs = [
|
|
mdx
|
|
ounit2
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mdx.bin
|
|
];
|
|
|
|
doCheck =
|
|
# Checks fail with cmdliner ≥ 2.0
|
|
false
|
|
&& !(
|
|
lib.versions.majorMinor ocaml.version == "5.0"
|
|
|| lib.versions.majorMinor ocaml.version == "5.4"
|
|
|| stdenv.hostPlatform.isDarwin
|
|
);
|
|
|
|
meta = {
|
|
description = "SMT solver frontend for OCaml";
|
|
homepage = "https://formalsec.github.io/smtml/smtml/";
|
|
downloadPage = "https://github.com/formalsec/smtml";
|
|
changelog = "https://github.com/formalsec/smtml/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.mit;
|
|
teams = with lib.teams; [ ngi ];
|
|
maintainers = with lib.maintainers; [
|
|
ethancedwards8
|
|
redianthus
|
|
];
|
|
};
|
|
})
|