2023-01-11 07:51:40 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, autoreconfHook
|
|
|
|
, which
|
|
|
|
, ocamlPackages
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cubicle";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "1.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2023-01-11 07:51:40 +00:00
|
|
|
url = "https://github.com/cubicle-model-checker/cubicle/archive/refs/tags/${version}.tar.gz";
|
|
|
|
hash = "sha256-/EtbXpyXqRm0jGcMfGLAEwdr92061edjFys1V7/w6/Y=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
# https://github.com/cubicle-model-checker/cubicle/issues/1
|
2020-04-24 23:36:52 +00:00
|
|
|
postPatch = ''
|
2023-01-11 07:51:40 +00:00
|
|
|
substituteInPlace Makefile.in \
|
|
|
|
--replace "@OCAMLC@" "ocamlfind ocamlc -package num" \
|
|
|
|
--replace "@OCAMLOPT@" "ocamlfind ocamlopt -package num"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
which
|
|
|
|
] ++ (with ocamlPackages; [
|
|
|
|
findlib
|
|
|
|
ocaml
|
|
|
|
]);
|
|
|
|
|
|
|
|
buildInputs = with ocamlPackages; [
|
|
|
|
functory
|
|
|
|
num
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An open source model checker for verifying safety properties of array-based systems";
|
|
|
|
homepage = "http://cubicle.lri.fr/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ dwarfmaster ];
|
|
|
|
};
|
|
|
|
}
|