Commit fc6517a5 authored by Sebastian Reuße's avatar Sebastian Reuße
Browse files

ballerina: 2201.1.0 -> 2201.2.1

Additionally, we now force Java 11. While Ballerina documentation says to use
“Java 11 or above”, comments on GitHub indicate that Java 17 is currently
unsupported.

Using Ballerina 2201.2.1 on Java 17 yields me a ConcurrentModificationException
arising from the Ballerina compiler when compiling a simple test service. This
exception is avoided when running Ballerina on Java 11 instead.
parent 2f1aa3e8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
{ ballerina, lib, writeText, runCommand, makeWrapper, fetchzip, stdenv, openjdk }:
let
  version = "2201.1.0";
  version = "2201.2.1";
  codeName = "swan-lake";
in stdenv.mkDerivation {
  pname = "ballerina";
@@ -8,7 +8,7 @@ in stdenv.mkDerivation {

  src = fetchzip {
    url = "https://dist.ballerina.io/downloads/${version}/ballerina-${version}-${codeName}.zip";
    sha256 = "sha256-WZ6CvgnES1indYeMSuC3odDqwR2J27k+D8RktvHsELs=";
    sha256 = "sha256-QNXaEivwlqBdbpxGCYnfIN/fQkWlVu8lqGWKfLlVB5s=";
  };

  nativeBuildInputs = [ makeWrapper ];
+1 −1
Original line number Diff line number Diff line
@@ -13300,7 +13300,7 @@ with pkgs;
  avra = callPackage ../development/compilers/avra { };
  ballerina = callPackage ../development/compilers/ballerina { };
  ballerina = callPackage ../development/compilers/ballerina { openjdk = openjdk11; };
  beekeeper-studio = callPackage ../development/tools/database/beekeeper-studio { };