1 { lib, stdenv, fetchzip, jdk17_headless }:
3 stdenv.mkDerivation rec {
8 url = "https://github.com/lf-lang/lingua-franca/releases/download/v${version}/lf-cli-${version}.zip";
9 sha256 = "sha256-LrAm77iPUlqVfRdYy2bZ4mim7DHIr5JxPdbrgxokGvc=";
12 buildInputs = [ jdk17_headless ];
14 _JAVA_HOME = "${jdk17_headless}/";
17 substituteInPlace bin/lfc \
18 --replace 'base=`dirname $(dirname ''${abs_path})`' "base='$out'" \
19 --replace "run_lfc_with_args" "${jdk17_headless}/bin/java -jar $out/lib/jars/org.lflang.lfc-${version}-all.jar"
28 description = "Polyglot coordination language";
30 Lingua Franca (LF) is a polyglot coordination language for concurrent
31 and possibly time-sensitive applications ranging from low-level
32 embedded code to distributed cloud and edge applications.
34 homepage = "https://github.com/lf-lang/lingua-franca";
35 sourceProvenance = with sourceTypes; [ binaryBytecode ];
36 license = licenses.bsd2;
37 platforms = platforms.linux;
38 maintainers = with maintainers; [ revol-xut ];