depot/third_party/nixpkgs/pkgs/applications/science/logic/beluga/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

40 lines
987 B
Nix

{ lib, fetchFromGitHub, ocamlPackages, rsync }:
ocamlPackages.buildDunePackage rec {
pname = "beluga";
version = "1.0";
src = fetchFromGitHub {
owner = "Beluga-lang";
repo = "Beluga";
rev = "v${version}";
sha256 = "1ziqjfv8jwidl8lj2mid2shhgqhv31dfh5wad2zxjpvf6038ahsw";
};
duneVersion = "3";
buildInputs = with ocamlPackages; [
gen sedlex extlib dune-build-info linenoise
];
postPatch = ''
patchShebangs ./TEST ./run_harpoon_test.sh
'';
checkPhase = "./TEST";
nativeCheckInputs = [ 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;
};
}