nixpkgs/pkgs/by-name/be/beluga/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
979 B
Nix
Raw Normal View History

2023-08-02 17:20:41 +00:00
{ lib, fetchFromGitHub, ocamlPackages }:
2018-04-04 01:40:09 +00:00
2021-04-01 04:20:00 +00:00
ocamlPackages.buildDunePackage rec {
pname = "beluga";
2024-07-22 12:24:09 +00:00
version = "1.1.2";
2018-04-04 01:40:09 +00:00
src = fetchFromGitHub {
2023-08-02 17:20:41 +00:00
owner = "Beluga-lang";
repo = "Beluga";
rev = "refs/tags/v${version}";
2024-07-22 12:24:09 +00:00
hash = "sha256-QUZ3mmd0gBQ+hnAeo/TbvFsETnThAdAoQyfpz2F//4g=";
2018-04-04 01:40:09 +00:00
};
2023-01-15 07:55:01 +00:00
duneVersion = "3";
2018-04-04 01:40:09 +00:00
buildInputs = with ocamlPackages; [
2023-08-02 17:20:41 +00:00
gen
sedlex
extlib
dune-build-info
linenoise
omd
uri
ounit2
yojson
];
2018-04-04 01:40:09 +00:00
doCheck = true;
2018-04-04 01:40:09 +00:00
postInstall = ''
2018-04-04 01:40:09 +00: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 01:40:09 +00:00
description = "Functional language for reasoning about formal systems";
2023-08-02 17:20:41 +00:00
homepage = "https://complogic.cs.mcgill.ca/beluga";
changelog = "https://github.com/Beluga-lang/Beluga/releases/tag/v${version}";
license = licenses.gpl3Plus;
maintainers = [ maintainers.bcdarwin ];
2023-08-02 17:20:41 +00:00
platforms = platforms.unix;
2018-04-04 01:40:09 +00:00
};
}