mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
Move to pkgs/by-name/
Build with default version of OCaml
Use finalAttrs pattern
Remove unused dependencies
(cherry picked from commit 23bee868d9)
52 lines
1.7 KiB
Nix
52 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
ocamlPackages,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "prooftree";
|
|
version = "0.14";
|
|
|
|
src = fetchurl {
|
|
url = "https://askra.de/software/prooftree/releases/prooftree-${finalAttrs.version}.tar.gz";
|
|
hash = "sha256-nekV2UnjibOk4h0jZ1jV7W5pE/hXWb3fUoLTJb3Jzc0=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = with ocamlPackages; [
|
|
ocaml
|
|
findlib
|
|
];
|
|
buildInputs = with ocamlPackages; [ lablgtk ];
|
|
|
|
prefixKey = "--prefix ";
|
|
|
|
meta = {
|
|
description = "Program for proof-tree visualization";
|
|
mainProgram = "prooftree";
|
|
longDescription = ''
|
|
Prooftree is a program for proof-tree visualization during interactive
|
|
proof development in a theorem prover. It is currently being developed
|
|
for Coq and Proof General. Prooftree helps against getting lost between
|
|
different subgoals in interactive proof development. It clearly shows
|
|
where the current subgoal comes from and thus helps in developing the
|
|
right plan for solving it.
|
|
|
|
Prooftree uses different colors for the already proven subgoals, the
|
|
current branch in the proof and the still open subgoals. Sequent texts
|
|
are not displayed in the proof tree itself, but they are shown as a
|
|
tool-tip when the mouse rests over a sequent symbol. Long proof commands
|
|
are abbreviated in the tree display, but show up in full length as
|
|
tool-tip. Both, sequents and proof commands, can be shown in the display
|
|
below the tree (on single click) or in a separate window (on double or
|
|
shift-click).
|
|
'';
|
|
homepage = "http://askra.de/software/prooftree";
|
|
platforms = lib.platforms.unix;
|
|
maintainers = [ lib.maintainers.jwiegley ];
|
|
license = lib.licenses.gpl3;
|
|
};
|
|
})
|