1 { lib, stdenv, fetchurl, makeWrapper, jre }:
3 stdenv.mkDerivation rec {
8 url = "https://github.com/tlaplus/tlaplus/releases/download/v${version}/tla2tools.jar";
9 sha256 = "sha256-k2omIGHJFGlN/WaaVDviRXPEXVqg/yCouWsj0B4FDog=";
12 nativeBuildInputs = [ makeWrapper ];
16 mkdir -p $out/share/java $out/bin
17 cp $src $out/share/java/tla2tools.jar
19 makeWrapper ${jre}/bin/java $out/bin/tlc \
20 --add-flags "-XX:+UseParallelGC -cp $out/share/java/tla2tools.jar tlc2.TLC"
21 makeWrapper ${jre}/bin/java $out/bin/tlasany \
22 --add-flags "-XX:+UseParallelGC -cp $out/share/java/tla2tools.jar tla2sany.SANY"
23 makeWrapper ${jre}/bin/java $out/bin/pcal \
24 --add-flags "-XX:+UseParallelGC -cp $out/share/java/tla2tools.jar pcal.trans"
25 makeWrapper ${jre}/bin/java $out/bin/tlatex \
26 --add-flags "-XX:+UseParallelGC -cp $out/share/java/tla2tools.jar tla2tex.TLA"
30 description = "Algorithm specification language with model checking tools";
31 homepage = "http://lamport.azurewebsites.net/tla/tla.html";
32 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
33 license = lib.licenses.mit;
34 platforms = lib.platforms.unix;
35 maintainers = with lib.maintainers; [ florentc thoughtpolice mgregson ];