mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
|
{ lib, pkgs, stdenv, jdk11_headless }:
|
||
|
stdenv.mkDerivation {
|
||
|
name = "lfc";
|
||
|
version = "0.1.0";
|
||
|
|
||
|
src = fetchGit {
|
||
|
url = "https://github.com/revol-xut/lingua-franca-nix-releases.git";
|
||
|
rev = "11c6d5297cd63bf0b365a68c5ca31ec80083bd05";
|
||
|
ref = "master";
|
||
|
};
|
||
|
|
||
|
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-${version}-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.all;
|
||
|
maintainers = with maintainers; [ revol-xut ];
|
||
|
};
|
||
|
}
|