2023-08-04 22:07:22 +00:00
|
|
|
{ lib, fetchFromGitHub, ocamlPackages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-22 02:08:21 +00:00
|
|
|
ocamlPackages.buildDunePackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "beluga";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-08-04 22:07:22 +00:00
|
|
|
owner = "Beluga-lang";
|
|
|
|
repo = "Beluga";
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-l/C77czLtlLnpadVx4d9ve9jv/e11jsOgzrbXt+Zo5s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
duneVersion = "3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = with ocamlPackages; [
|
2023-08-04 22:07:22 +00:00
|
|
|
gen
|
|
|
|
sedlex
|
|
|
|
extlib
|
|
|
|
dune-build-info
|
|
|
|
linenoise
|
|
|
|
omd
|
|
|
|
uri
|
|
|
|
ounit2
|
|
|
|
yojson
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/emacs/site-lisp/beluga/
|
|
|
|
cp -r tools/beluga-mode.el $out/share/emacs/site-lisp/beluga
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A functional language for reasoning about formal systems";
|
2023-08-04 22:07:22 +00:00
|
|
|
homepage = "https://complogic.cs.mcgill.ca/beluga";
|
|
|
|
changelog = "https://github.com/Beluga-lang/Beluga/releases/tag/v${version}";
|
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.bcdarwin ];
|
2023-08-04 22:07:22 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|