ballerina: init at 2201.1.0

This commit is contained in:
Sebastian Reuße 2022-07-07 08:41:08 +02:00
parent c0c9ca57c3
commit 1be3859507
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,32 @@
{ lib, makeWrapper, fetchzip, stdenv, openjdk }:
let
version = "2201.1.0";
codeName = "swan-lake";
in stdenv.mkDerivation {
pname = "ballerina";
inherit version;
src = fetchzip {
url = "https://dist.ballerina.io/downloads/${version}/ballerina-${version}-${codeName}.zip";
sha256 = "sha256-WZ6CvgnES1indYeMSuC3odDqwR2J27k+D8RktvHsELs=";
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
cp -rv distributions/ballerina-${version} $out
runHook postInstall
'';
preFixup = ''
wrapProgram $out/bin/bal --set JAVA_HOME ${openjdk}/lib/openjdk
'';
meta = with lib; {
description = "An open-source programming language for the cloud";
license = licenses.asl20;
platforms = openjdk.meta.platforms;
maintainers = with maintainers; [ eigengrau ];
sourceProvenance = with sourceTypes; [ binaryBytecode ];
};
}

View File

@ -12810,6 +12810,8 @@ with pkgs;
avra = callPackage ../development/compilers/avra { };
ballerina = callPackage ../development/compilers/ballerina { };
beekeeper-studio = callPackage ../development/tools/database/beekeeper-studio { };
bigloo = callPackage ../development/compilers/bigloo { };