1 { lib, stdenv, fetchurl, makeWrapper, jre, unzip }:
3 stdenv.mkDerivation (finalAttrs: {
8 url = "https://github.com/JetBrains/kotlin/releases/download/v${finalAttrs.version}/kotlin-compiler-${finalAttrs.version}.zip";
9 sha256 = "sha256-tmmNVyitj57c3QFhfWOAcxkdigMTnMU4o5G043Wa0pc=";
12 propagatedBuildInputs = [ jre ] ;
13 nativeBuildInputs = [ makeWrapper unzip ];
20 for p in $(ls $out/bin/) ; do
21 wrapProgram $out/bin/$p --prefix PATH ":" ${jre}/bin ;
24 if [ -f $out/LICENSE ]; then
25 install -D $out/LICENSE $out/share/kotlin/LICENSE
31 description = "General purpose programming language";
33 Kotlin is a statically typed language that targets the JVM and JavaScript.
34 It is a general-purpose language intended for industry use.
35 It is developed by a team at JetBrains although it is an OSS language
36 and has external contributors.
38 homepage = "https://kotlinlang.org/";
39 license = lib.licenses.asl20;
40 maintainers = with lib.maintainers; [ SubhrajyotiSen ];
41 platforms = lib.platforms.all;