3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/logic/twelf/default.nix

52 lines
1.6 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, smlnj, rsync }:
stdenv.mkDerivation rec {
pname = "twelf";
version = "1.7.1";
src = fetchurl {
2014-06-27 18:46:13 +01:00
url = "http://twelf.plparty.org/releases/twelf-src-${version}.tar.gz";
sha256 = "0fi1kbs9hrdrm1x4k13angpjasxlyd1gc3ys8ah54i75qbcd9c4i";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ smlnj rsync ];
buildPhase = ''
export SMLNJ_HOME=${smlnj}
make smlnj
'';
installPhase = ''
2014-07-22 10:01:32 +01:00
mkdir -p $out/bin
rsync -av bin/{*,.heap} $out/bin/
bin/.mkexec ${smlnj}/bin/sml $out/ twelf-server twelf-server
2016-09-09 04:11:36 +01:00
substituteInPlace emacs/twelf-init.el \
--replace '(concat twelf-root "emacs")' '(concat twelf-root "share/emacs/site-lisp/twelf")'
2014-07-22 10:01:32 +01:00
mkdir -p $out/share/emacs/site-lisp/twelf/
rsync -av emacs/ $out/share/emacs/site-lisp/twelf/
2014-07-22 10:01:32 +01:00
mkdir -p $out/share/twelf/examples
rsync -av examples/ $out/share/twelf/examples/
2014-07-22 10:01:32 +01:00
mkdir -p $out/share/twelf/vim
rsync -av vim/ $out/share/twelf/vim/
'';
meta = {
description = "Logic proof assistant";
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";
license = stdenv.lib.licenses.mit;
maintainers = with stdenv.lib.maintainers; [ jwiegley ];
platforms = stdenv.lib.platforms.unix;
};
}