2014-06-26 22:54:12 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, smlnj, rsync }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "twelf-${version}";
|
|
|
|
version = "1.7.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2014-06-27 17:46:13 +00:00
|
|
|
url = "http://twelf.plparty.org/releases/twelf-src-${version}.tar.gz";
|
2014-06-26 22:54:12 +00:00
|
|
|
sha256 = "0fi1kbs9hrdrm1x4k13angpjasxlyd1gc3ys8ah54i75qbcd9c4i";
|
|
|
|
};
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ smlnj rsync ];
|
2014-06-26 22:54:12 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
export SMLNJ_HOME=${smlnj}
|
|
|
|
make smlnj
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-07-22 09:01:32 +00:00
|
|
|
mkdir -p $out/bin
|
2015-03-31 05:11:57 +00:00
|
|
|
rsync -av bin/{*,.heap} $out/bin/
|
|
|
|
bin/.mkexec ${smlnj}/bin/sml $out/ twelf-server twelf-server
|
2014-06-26 22:54:12 +00:00
|
|
|
|
2016-09-09 03:11:36 +00:00
|
|
|
substituteInPlace emacs/twelf-init.el \
|
|
|
|
--replace '(concat twelf-root "emacs")' '(concat twelf-root "share/emacs/site-lisp/twelf")'
|
|
|
|
|
2014-07-22 09:01:32 +00:00
|
|
|
mkdir -p $out/share/emacs/site-lisp/twelf/
|
2014-06-26 22:54:12 +00:00
|
|
|
rsync -av emacs/ $out/share/emacs/site-lisp/twelf/
|
|
|
|
|
2014-07-22 09:01:32 +00:00
|
|
|
mkdir -p $out/share/twelf/examples
|
2014-06-26 22:54:12 +00:00
|
|
|
rsync -av examples/ $out/share/twelf/examples/
|
2014-07-22 09:01:32 +00:00
|
|
|
mkdir -p $out/share/twelf/vim
|
2014-06-26 22:54:12 +00:00
|
|
|
rsync -av vim/ $out/share/twelf/vim/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Logic proof assistant";
|
2014-06-26 22:54:12 +00:00
|
|
|
longDescription = ''
|
|
|
|
Twelf is a language used to specify, implement, and prove properties of
|
|
|
|
deductive systems such as programming languages and logics. Large
|
|
|
|
research projects using Twelf include the TALT typed assembly language,
|
|
|
|
a foundational proof-carrying-code system, and a type safety proof for
|
|
|
|
Standard ML.
|
|
|
|
'';
|
|
|
|
homepage = http://twelf.org/wiki/Main_Page;
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2014-06-26 22:54:12 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ jwiegley ];
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|