2018-07-21 01:44:44 +01:00
|
|
|
{ fetchurl
|
2018-04-08 01:27:58 +01:00
|
|
|
, stdenv
|
2018-07-21 01:44:44 +01:00
|
|
|
, ocaml, isabelle, cvc3, perl, wget, which
|
2018-04-08 01:27:58 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "tlaps";
|
2018-04-08 01:27:58 +01:00
|
|
|
version = "1.4.3";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://tla.msr-inria.inria.fr/tlaps/dist/current/tlaps-${version}.tar.gz";
|
|
|
|
sha256 = "1w5z3ns5xxmhmp8r4x2kjmy3clqam935gmvx82imyxrr1bamx6gf";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml isabelle cvc3 perl wget which ];
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -pv "$out"
|
|
|
|
export HOME="$out"
|
|
|
|
export PATH=$out/bin:$PATH
|
|
|
|
|
|
|
|
pushd zenon
|
|
|
|
./configure --prefix $out
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd isabelle
|
|
|
|
isabelle build -b Pure
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd tlapm
|
|
|
|
./configure --prefix $out
|
|
|
|
make all
|
|
|
|
make install
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Mechanically check TLA+ proofs";
|
|
|
|
longDescription = ''
|
|
|
|
TLA+ is a general-purpose formal specification language that is
|
|
|
|
particularly useful for describing concurrent and distributed
|
|
|
|
systems. The TLA+ proof language is declarative, hierarchical,
|
|
|
|
and scalable to large system specifications. It provides a
|
|
|
|
consistent abstraction over the various “backend” verifiers.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://tla.msr-inria.inria.fr/tlaps/content/Home.html";
|
2018-04-08 01:27:58 +01:00
|
|
|
license = stdenv.lib.licenses.bsd2;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.badi ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|