about summary refs log tree commit diff
path: root/pkgs/development/compilers/kotlin
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/kotlin')
-rw-r--r--pkgs/development/compilers/kotlin/default.nix43
-rw-r--r--pkgs/development/compilers/kotlin/native.nix64
2 files changed, 0 insertions, 107 deletions
diff --git a/pkgs/development/compilers/kotlin/default.nix b/pkgs/development/compilers/kotlin/default.nix
deleted file mode 100644
index b8967d64794f..000000000000
--- a/pkgs/development/compilers/kotlin/default.nix
+++ /dev/null
@@ -1,43 +0,0 @@
-{ lib, stdenv, fetchurl, makeWrapper, jre, unzip }:
-
-stdenv.mkDerivation rec {
-  pname = "kotlin";
-  version = "2.0.0";
-
-  src = fetchurl {
-    url = "https://github.com/JetBrains/kotlin/releases/download/v${version}/kotlin-compiler-${version}.zip";
-    sha256 = "sha256-71eHMJdhVP0sWWjXWvjCcDs96Ep43/6RP2cDJuFJ2js=";
-  };
-
-  propagatedBuildInputs = [ jre ] ;
-  nativeBuildInputs = [ makeWrapper unzip ];
-
-  installPhase = ''
-    mkdir -p $out
-    rm "bin/"*.bat
-    mv * $out
-
-    for p in $(ls $out/bin/) ; do
-      wrapProgram $out/bin/$p --prefix PATH ":" ${jre}/bin ;
-    done
-
-    if [ -f $out/LICENSE ]; then
-      install -D $out/LICENSE $out/share/kotlin/LICENSE
-      rm $out/LICENSE
-    fi
-  '';
-
-  meta = {
-    description = "General purpose programming language";
-    longDescription = ''
-      Kotlin is a statically typed language that targets the JVM and JavaScript.
-      It is a general-purpose language intended for industry use.
-      It is developed by a team at JetBrains although it is an OSS language
-      and has external contributors.
-    '';
-    homepage = "https://kotlinlang.org/";
-    license = lib.licenses.asl20;
-    maintainers = with lib.maintainers; [ SubhrajyotiSen ];
-    platforms = lib.platforms.all;
-  };
-}
diff --git a/pkgs/development/compilers/kotlin/native.nix b/pkgs/development/compilers/kotlin/native.nix
deleted file mode 100644
index 044364b37c39..000000000000
--- a/pkgs/development/compilers/kotlin/native.nix
+++ /dev/null
@@ -1,64 +0,0 @@
-{ lib
-, stdenv
-, fetchurl
-, jre
-, makeWrapper
-}:
-
-stdenv.mkDerivation rec {
-  pname = "kotlin-native";
-  version = "1.9.23";
-
-  src = let
-    getArch = {
-      "aarch64-darwin" = "macos-aarch64";
-      "x86_64-darwin" = "macos-x86_64";
-      "x86_64-linux" = "linux-x86_64";
-    }.${stdenv.system} or (throw "${pname}-${version}: ${stdenv.system} is unsupported.");
-
-    getUrl = version: arch:
-      "https://github.com/JetBrains/kotlin/releases/download/v${version}/kotlin-native-${arch}-${version}.tar.gz";
-
-    getHash = arch: {
-      "macos-aarch64" = "1v1ld4nxa77vjxiz4jw5h29s8i4ghfbmq0d01r15i75pr46md8r7";
-      "macos-x86_64" = "05ywdhagj3qzjaw5sd94sgjk89dysky7d7lfqpwvc8s35v77rv8f";
-      "linux-x86_64" = "1j2lpl1r7r30dgard6ia29n3qrsr98wb3qwpc80z4jh6k42qn6id";
-    }.${arch};
-  in
-    fetchurl {
-      url = getUrl version getArch;
-      sha256 = getHash getArch;
-    };
-
-  nativeBuildInputs = [
-    jre
-    makeWrapper
-  ];
-
-  installPhase = ''
-    runHook preInstall
-
-    mkdir -p $out
-    mv * $out
-
-    runHook postInstall
-  '';
-
-  postFixup = ''
-    wrapProgram $out/bin/run_konan --prefix PATH ":" ${lib.makeBinPath [ jre ]}
-  '';
-
-  meta = {
-    homepage = "https://kotlinlang.org/";
-    description = "Modern programming language that makes developers happier";
-    longDescription = ''
-      Kotlin/Native is a technology for compiling Kotlin code to native
-      binaries, which can run without a virtual machine. It is an LLVM based
-      backend for the Kotlin compiler and native implementation of the Kotlin
-      standard library.
-    '';
-    license = lib.licenses.asl20;
-    maintainers = with lib.maintainers; [ fabianhjr ];
-    platforms = [ "x86_64-linux" ] ++ lib.platforms.darwin;
-  };
-}