ballerina: init at 2201.1.0
This commit is contained in:
parent
c0c9ca57c3
commit
1be3859507
32
pkgs/development/compilers/ballerina/default.nix
Normal file
32
pkgs/development/compilers/ballerina/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue