9 stdenv.mkDerivation rec {
10 pname = "kotlin-native";
17 "aarch64-darwin" = "macos-aarch64";
18 "x86_64-darwin" = "macos-x86_64";
19 "x86_64-linux" = "linux-x86_64";
21 .${stdenv.system} or (throw "${pname}-${version}: ${stdenv.system} is unsupported.");
25 "https://github.com/JetBrains/kotlin/releases/download/v${version}/kotlin-native-prebuilt-${arch}-${version}.tar.gz";
30 "macos-aarch64" = "sha256-FHXR5XA7B/fqox2GTIkCJ6BIaSKoufLY0yMLe2ZmoqM=";
31 "macos-x86_64" = "sha256-qXAnTdF9dkojOzb+vV08fZYYJUnQ43y8Yo0SxL6n2Ac=";
32 "linux-x86_64" = "sha256-5aAqD/ru6OGWitm+QGouXMNIc4xV8o4ltLWPc29t8P4=";
37 url = getUrl version getArch;
38 sha256 = getHash getArch;
56 wrapProgram $out/bin/run_konan --prefix PATH ":" ${lib.makeBinPath [ jre ]}
60 homepage = "https://kotlinlang.org/";
61 description = "Modern programming language that makes developers happier";
63 Kotlin/Native is a technology for compiling Kotlin code to native
64 binaries, which can run without a virtual machine. It is an LLVM based
65 backend for the Kotlin compiler and native implementation of the Kotlin
68 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
69 license = lib.licenses.asl20;
70 maintainers = with lib.maintainers; [ fabianhjr ];
71 platforms = [ "x86_64-linux" ] ++ lib.platforms.darwin;