nixpkgs/pkgs/applications/science/logic/ott/default.nix

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

46 lines
1.4 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, pkg-config, ocaml, opaline }:
2014-09-15 20:47:37 +00:00
stdenv.mkDerivation rec {
pname = "ott";
2022-03-12 18:31:38 +00:00
version = "0.32";
2014-09-15 20:47:37 +00:00
2017-12-10 07:49:17 +00:00
src = fetchFromGitHub {
owner = "ott-lang";
repo = "ott";
rev = version;
2022-03-12 18:31:38 +00:00
sha256 = "sha256-vdDsfsIi1gRW1Sowf29VyQ4C5UKyQZaVgS2uTb8VeW4=";
2014-09-15 20:47:37 +00:00
};
nativeBuildInputs = [ pkg-config opaline ];
2017-12-10 07:49:17 +00:00
buildInputs = [ ocaml ];
2014-09-15 20:47:37 +00:00
2020-09-08 05:27:08 +00:00
installTargets = "ott.install";
2014-09-15 20:47:37 +00:00
postInstall = ''
opaline -prefix $out
''
# There is `emacsPackages.ott-mode` for this now.
+ ''
rm -r $out/share/emacs
'';
2014-09-15 20:47:37 +00:00
meta = {
description = "A tool for the working semanticist";
2014-09-15 20:47:37 +00:00
longDescription = ''
Ott is a tool for writing definitions of programming languages and
calculi. It takes as input a definition of a language syntax and
semantics, in a concise and readable ASCII notation that is close to
what one would write in informal mathematics. It generates LaTeX to
build a typeset version of the definition, and Coq, HOL, and Isabelle
versions of the definition. Additionally, it can be run as a filter,
taking a LaTeX/Coq/Isabelle/HOL source file with embedded (symbolic)
terms of the defined language, parsing them and replacing them by
target-system terms.
'';
homepage = "http://www.cl.cam.ac.uk/~pes20/ott";
2021-01-15 13:21:58 +00:00
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ jwiegley ];
platforms = lib.platforms.unix;
2014-09-15 20:47:37 +00:00
};
}