From 2b35ffed0abc52ed38c8f8296b238dca2f242d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniels=20=C5=A0atcs?= Date: Thu, 25 Jun 2026 09:51:53 +0300 Subject: [PATCH 1/2] kotlin-cli: init at 0.11.1 --- pkgs/by-name/ko/kotlin-cli/package.nix | 62 ++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 pkgs/by-name/ko/kotlin-cli/package.nix diff --git a/pkgs/by-name/ko/kotlin-cli/package.nix b/pkgs/by-name/ko/kotlin-cli/package.nix new file mode 100644 index 000000000000..02ca48c9c907 --- /dev/null +++ b/pkgs/by-name/ko/kotlin-cli/package.nix @@ -0,0 +1,62 @@ +{ + lib, + fetchurl, + stdenv, + jre, + makeWrapper, + nix-update-script, + jdk25, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "kotlin-cli"; + version = "0.11.1"; + + src = fetchurl { + url = "https://packages.jetbrains.team/maven/p/amper/amper/org/jetbrains/kotlin/kotlin-cli/${finalAttrs.version}/kotlin-cli-${finalAttrs.version}-dist.tgz"; + hash = "sha256-De0qQ09r8ZOyTiptVsO6RD9CMnIRVaZaqoNyeJQSES8="; + }; + sourceRoot = "."; + dontBuild = true; + nativeBuildInputs = [ makeWrapper ]; + + strictDeps = true; + __structuredAttrs = true; + + installPhase = '' + mkdir -p $out/share/kotlin-cli + cp -r * $out/share/kotlin-cli/ + + mkdir -p $out/bin + chmod +x $out/share/kotlin-cli/bin/launcher.sh + + # Override amper runtime JVM. + sed -i 's|^[[:space:]]*jre_url=.*| jre_url=""|' $out/share/kotlin-cli/bin/launcher.sh + sed -i 's|^[[:space:]]*jre_target_dir=.*| jre_target_dir="${jdk25}"|' $out/share/kotlin-cli/bin/launcher.sh + + # Create the missing .flag file to satisfy the runtime check + touch $out/share/kotlin-cli/.flag + + # Override kotlin toolchain launcher JVM. + makeWrapper $out/share/kotlin-cli/bin/launcher.sh $out/bin/kotlin \ + --set KOTLIN_CLI_JAVA_HOME "${jdk25.home}" + + runHook postInstall + ''; + + passthru.updateScript = nix-update-script { + extraArgs = [ + "--url=https://github.com/JetBrains/kotlin-toolchain" + ]; + }; + + meta = { + description = "Kotlin Toolchain CLI"; + homepage = "https://github.com/JetBrains/kotlin-toolchain"; + license = lib.licenses.asl20; + maintainers = [ lib.maintainers.dshatz ]; + platforms = jre.meta.platforms; + sourceProvenance = [ lib.sourceTypes.binaryBytecode ]; + mainProgram = "kotlin"; + }; +}) From 41df2c56c0b5acb7f6ae62a0ea7affe5c046015c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniels=20=C5=A0atcs?= Date: Thu, 25 Jun 2026 15:52:48 +0300 Subject: [PATCH 2/2] maintainers: add dshatz --- maintainers/maintainer-list.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 26c771d8f2d4..f42d2eeb0397 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -7391,6 +7391,13 @@ github = "DSeeLP"; githubId = 46624152; }; + dshatz = { + email = "dev@dshatz.com"; + github = "dshatz"; + githubId = 23437798; + name = "Daniels Å atcs"; + keys = [ { fingerprint = "7452B4B47EA8F6635AB545CA4B974CC26375BB06"; } ]; + }; dsluijk = { name = "Dany Sluijk"; email = "nix@dany.dev";