diff options
Diffstat (limited to 'pkgs/development/compilers/ballerina/default.nix')
-rw-r--r-- | pkgs/development/compilers/ballerina/default.nix | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/pkgs/development/compilers/ballerina/default.nix b/pkgs/development/compilers/ballerina/default.nix deleted file mode 100644 index f32cc203b67d..000000000000 --- a/pkgs/development/compilers/ballerina/default.nix +++ /dev/null @@ -1,46 +0,0 @@ -{ ballerina, lib, writeText, runCommand, makeWrapper, fetchzip, stdenv, openjdk }: -let - version = "2201.9.1"; - codeName = "swan-lake"; -in stdenv.mkDerivation { - pname = "ballerina"; - inherit version; - - src = fetchzip { - url = "https://dist.ballerina.io/downloads/${version}/ballerina-${version}-${codeName}.zip"; - hash = "sha256-5ATrR2TZHu4xr+XuGaiSZpIKTDQt6MTxg2DdU1qVjMI="; - }; - - nativeBuildInputs = [ makeWrapper ]; - - installPhase = '' - runHook preInstall - cp -rv distributions/ballerina-${version} $out - runHook postInstall - ''; - preFixup = '' - wrapProgram $out/bin/bal --set JAVA_HOME ${openjdk} - ''; - - passthru.tests.smokeTest = let - helloWorld = writeText "hello-world.bal" '' - import ballerina/io; - public function main() { - io:println("Hello, World!"); - } - ''; - in runCommand "ballerina-${version}-smoketest" { } '' - ${ballerina}/bin/bal run ${helloWorld} >$out - read result <$out - [[ $result = "Hello, World!" ]] - ''; - - meta = with lib; { - description = "Open-source programming language for the cloud"; - mainProgram = "bal"; - license = licenses.asl20; - platforms = openjdk.meta.platforms; - maintainers = with maintainers; [ eigengrau ]; - sourceProvenance = with sourceTypes; [ binaryBytecode ]; - }; -} |