nixpkgs-suyu/pkgs/applications/science/logic/beluga/default.nix

41 lines
1 KiB
Nix
Raw Normal View History

{ lib, fetchFromGitHub, ocamlPackages, rsync }:
2018-04-04 03:40:09 +02:00
ocamlPackages.buildDunePackage {
pname = "beluga";
version = "unstable-2020-03-11";
2018-04-04 03:40:09 +02:00
src = fetchFromGitHub {
owner = "Beluga-lang";
repo = "Beluga";
rev = "6133b2f572219333f304bb4f77c177592324c55b";
sha256 = "0sy6mi50z3mvs5z7dx38piydapk89all81rh038x3559b5fsk68q";
2018-04-04 03:40:09 +02:00
};
useDune2 = true;
2018-04-04 03:40:09 +02:00
buildInputs = with ocamlPackages; [
gen sedlex_2 ocaml_extlib dune-build-info linenoise
];
2018-04-04 03:40:09 +02:00
postPatch = ''
patchShebangs ./TEST ./run_harpoon_test.sh
'';
checkPhase = "./TEST";
checkInputs = [ rsync ];
doCheck = true;
2018-04-04 03:40:09 +02:00
postInstall = ''
2018-04-04 03:40:09 +02:00
mkdir -p $out/share/emacs/site-lisp/beluga/
cp -r tools/beluga-mode.el $out/share/emacs/site-lisp/beluga
'';
meta = with lib; {
2018-04-04 03:40:09 +02:00
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;
2018-04-04 03:40:09 +02:00
};
}