2020-09-08 06:27:08 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, ocaml, opaline }:
|
2014-09-15 21:47:37 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ott";
|
2020-06-30 11:50:17 +01:00
|
|
|
version = "0.31";
|
2014-09-15 21:47:37 +01:00
|
|
|
|
2017-12-10 07:49:17 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ott-lang";
|
|
|
|
repo = "ott";
|
|
|
|
rev = version;
|
2020-06-30 11:50:17 +01:00
|
|
|
sha256 = "0l81126i2qkz11fs5yrjdgymnqgjcs5avb7f951h61yh1s68jpnn";
|
2014-09-15 21:47:37 +01:00
|
|
|
};
|
|
|
|
|
2020-09-08 06:27:08 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig opaline ];
|
2017-12-10 07:49:17 +00:00
|
|
|
buildInputs = [ ocaml ];
|
2014-09-15 21:47:37 +01:00
|
|
|
|
2020-09-08 06:27:08 +01:00
|
|
|
installTargets = "ott.install";
|
2014-09-15 21:47:37 +01:00
|
|
|
|
2020-09-08 06:27:08 +01:00
|
|
|
postInstall = "opaline -prefix $out";
|
2014-09-15 21:47:37 +01:00
|
|
|
|
|
|
|
meta = {
|
2020-10-26 04:08:40 +00:00
|
|
|
description = "A tool for the working semanticist";
|
2014-09-15 21:47:37 +01: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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.cl.cam.ac.uk/~pes20/ott";
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2014-09-15 21:47:37 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ jwiegley ];
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|