Merge pull request #144794 from revol-xut/master

This commit is contained in:
Sandro 2021-11-14 11:40:46 +01:00 committed by GitHub
commit 5cb226a06c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 51 additions and 0 deletions

View File

@ -9654,6 +9654,16 @@
githubId = 500703;
name = "Tadas Barzdžius";
};
revol-xut = {
email = "revol-xut@protonmail.com";
name = "Tassilo Tanneberger";
github = "revol-xut";
githubId = 32239737;
keys = [{
longkeyid = "rsa4096/B966009D57E69CC6";
fingerprint = "91EB E870 1639 1323 642A 6803 B966 009D 57E6 9CC6";
}];
};
rexim = {
email = "reximkut@gmail.com";
github = "rexim";

View File

@ -0,0 +1,41 @@
{ lib, pkgs, stdenv, fetchFromGitHub, jdk11_headless }:
stdenv.mkDerivation {
pname = "lfc";
version = "0.1.0";
src = fetchFromGitHub {
owner = "revol-xut";
repo = "lingua-franca-nix-releases";
rev = "11c6d5297cd63bf0b365a68c5ca31ec80083bd05";
sha256 = "DgxunzC8Ep0WdwChDHWgG5QJbJZ8UgQRXtP1HZqL9Jg=";
};
buildInputs = [ jdk11_headless ];
_JAVA_HOME = "${jdk11_headless}/";
postPatch = ''
substituteInPlace bin/lfc \
--replace 'base=`dirname $(dirname ''${abs_path})`' "base='$out'" \
--replace "run_lfc_with_args" "${jdk11_headless}/bin/java -jar $out/lib/jars/org.lflang.lfc-0.1.0-SNAPSHOT-all.jar"
'';
installPhase = ''
cp -r ./ $out/
chmod +x $out/bin/lfc
'';
meta = with lib; {
description = "Polyglot coordination language";
longDescription = ''
Lingua Franca (LF) is a polyglot coordination language for concurrent
and possibly time-sensitive applications ranging from low-level
embedded code to distributed cloud and edge applications.
'';
homepage = "https://github.com/lf-lang/lingua-franca";
license = licenses.bsd2;
platforms = platforms.linux;
maintainers = with maintainers; [ revol-xut ];
};
}