2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchFromGitHub, ocamlPackages, rsync }:
|
|
|
|
|
2021-04-22 02:08:21 +00:00
|
|
|
ocamlPackages.buildDunePackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "beluga";
|
2021-04-22 02:08:21 +00:00
|
|
|
version = "1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Beluga-lang";
|
|
|
|
repo = "Beluga";
|
2021-04-22 02:08:21 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1ziqjfv8jwidl8lj2mid2shhgqhv31dfh5wad2zxjpvf6038ahsw";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
buildInputs = with ocamlPackages; [
|
|
|
|
gen sedlex_2 ocaml_extlib dune-build-info linenoise
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ./TEST ./run_harpoon_test.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = "./TEST";
|
|
|
|
checkInputs = [ rsync ];
|
|
|
|
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";
|
|
|
|
homepage = "http://complogic.cs.mcgill.ca/beluga/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.bcdarwin ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|