nixpkgs/pkgs/development/compilers/kotlin/default.nix
R. RyanTM ed68e533b5 kotlin: 1.2.41 -> 1.2.50
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/kotlin/versions.

These checks were done:

- built on NixOS
- /nix/store/1kjxxx12sxgrggmqggadviahxjhngv4p-kotlin-1.2.50/bin/kotlin passed the binary check.
- Warning: no invocation of /nix/store/1kjxxx12sxgrggmqggadviahxjhngv4p-kotlin-1.2.50/bin/kotlin-dce-js had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/1kjxxx12sxgrggmqggadviahxjhngv4p-kotlin-1.2.50/bin/kotlinc had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/1kjxxx12sxgrggmqggadviahxjhngv4p-kotlin-1.2.50/bin/kotlinc-js had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/1kjxxx12sxgrggmqggadviahxjhngv4p-kotlin-1.2.50/bin/kotlinc-jvm had a zero exit code or showed the expected version
- /nix/store/1kjxxx12sxgrggmqggadviahxjhngv4p-kotlin-1.2.50/bin/.kotlin-wrapped passed the binary check.
- Warning: no invocation of /nix/store/1kjxxx12sxgrggmqggadviahxjhngv4p-kotlin-1.2.50/bin/.kotlin-dce-js-wrapped had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/1kjxxx12sxgrggmqggadviahxjhngv4p-kotlin-1.2.50/bin/.kotlinc-wrapped had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/1kjxxx12sxgrggmqggadviahxjhngv4p-kotlin-1.2.50/bin/.kotlinc-js-wrapped had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/1kjxxx12sxgrggmqggadviahxjhngv4p-kotlin-1.2.50/bin/.kotlinc-jvm-wrapped had a zero exit code or showed the expected version
- 2 of 10 passed binary check by having a zero exit code.
- 0 of 10 passed binary check by having the new version present in output.
- found 1.2.50 with grep in /nix/store/1kjxxx12sxgrggmqggadviahxjhngv4p-kotlin-1.2.50
- directory tree listing: https://gist.github.com/7d95bbd681ebe9729db46873f969f4fc
- du listing: https://gist.github.com/3802b96fcef5fe86923e965fb53fc6b0
2018-06-23 22:18:42 -07:00

47 lines
1.3 KiB
Nix

{ stdenv, fetchurl, makeWrapper, jre, unzip }:
let
version = "1.2.50";
in stdenv.mkDerivation rec {
inherit version;
name = "kotlin-${version}";
src = fetchurl {
url = "https://github.com/JetBrains/kotlin/releases/download/v${version}/kotlin-compiler-${version}.zip";
sha256 = "1abis73ij334vfwn9k4s9rsa1va7h31a9g97g84i2rrp7cq2q1mw";
};
propagatedBuildInputs = [ jre ] ;
buildInputs = [ 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 = http://kotlinlang.org/;
license = stdenv.lib.licenses.asl20;
maintainers = with stdenv.lib.maintainers;
[ nequissimus ];
platforms = stdenv.lib.platforms.all;
};
}