nixpkgs/pkgs/development/compilers/scala/default.nix
Arnout Engelen 30b459c377
dotty: rename to scala_3
Major version 3 of the Scala compiler started out under the codename 'dotty', and that's how it was packaged initially in nixpkgs.

Now that dotty has become the 'official' scala 3 compiler (see also b0f0e1d), we should rename the package as well

Fixes #170911
2022-05-05 11:32:30 +02:00

24 lines
492 B
Nix

{ stdenv, fetchurl, makeWrapper, jre, callPackage }:
let
bare = callPackage ./bare.nix {
inherit stdenv fetchurl makeWrapper jre;
};
in
stdenv.mkDerivation {
pname = "scala";
inherit (bare) version;
dontUnpack = true;
installPhase = ''
mkdir -p $out/bin
ln -s ${bare}/bin/scalac $out/bin/scalac
ln -s ${bare}/bin/scaladoc $out/bin/scaladoc
ln -s ${bare}/bin/scala $out/bin/scala
ln -s ${bare}/bin/common $out/bin/common
'';
inherit (bare) meta;
}