forked from mirrors/nixpkgs
769093b867
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/ott/versions. These checks were done: - built on NixOS - ran ‘/nix/store/2lbl8zpp2lrrh9pgh2gnyhimq6i86rl1-ott-0.28/bin/ott --help’ got 0 exit code - ran ‘/nix/store/2lbl8zpp2lrrh9pgh2gnyhimq6i86rl1-ott-0.28/bin/ott.opt --help’ got 0 exit code - found 0.28 with grep in /nix/store/2lbl8zpp2lrrh9pgh2gnyhimq6i86rl1-ott-0.28 - directory tree listing: https://gist.github.com/177f63b8c23bae6301ced29fb0e617c4
45 lines
1.4 KiB
Nix
45 lines
1.4 KiB
Nix
{ stdenv, fetchFromGitHub, pkgconfig, ocaml }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ott-${version}";
|
|
version = "0.28";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ott-lang";
|
|
repo = "ott";
|
|
rev = version;
|
|
sha256 = "0mzbrvqayqpns9zzg4m1scxx24dv9askhn51dawyb9pisvlyvai0";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ ocaml ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp src/ott.opt $out/bin
|
|
ln -s $out/bin/ott.opt $out/bin/ott
|
|
|
|
mkdir -p $out/share/emacs/site-lisp
|
|
cp emacs/ott-mode.el $out/share/emacs/site-lisp
|
|
'';
|
|
|
|
meta = {
|
|
description = "Ott: tool for the working semanticist";
|
|
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;
|
|
license = stdenv.lib.licenses.bsd3;
|
|
maintainers = with stdenv.lib.maintainers; [ jwiegley ];
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|