nixpkgs/pkgs/development/compilers/kotlin/default.nix
R. RyanTM f3b049330f kotlin: 1.2.31 -> 1.2.40
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
- ran ‘/nix/store/w1k17lqv3cc8sszxnmzg8g6lcc1pxkk8-kotlin-1.2.40/bin/kotlin -h’ got 0 exit code
- ran ‘/nix/store/w1k17lqv3cc8sszxnmzg8g6lcc1pxkk8-kotlin-1.2.40/bin/.kotlin-wrapped -h’ got 0 exit code
- found 1.2.40 with grep in /nix/store/w1k17lqv3cc8sszxnmzg8g6lcc1pxkk8-kotlin-1.2.40
- directory tree listing: https://gist.github.com/886158de7b36d9a61fcbc13d2638779a
2018-04-20 04:30:43 -07:00

41 lines
1.2 KiB
Nix

{ stdenv, fetchurl, makeWrapper, jre, unzip }:
let
version = "1.2.40";
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 = "0n4na0ddnjgc573szk5bpd34v5gib71pah62xq7vwdf34q8mg61l";
};
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
'';
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;
};
}