2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchurl, makeWrapper, jre, callPackage }:
|
|
|
|
|
|
|
|
let
|
|
|
|
dotty-bare = callPackage ./dotty-bare.nix {
|
|
|
|
inherit stdenv fetchurl makeWrapper jre;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "dotty-${dotty-bare.version}";
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2021-05-03 20:48:10 +00:00
|
|
|
ln -s ${dotty-bare}/bin/scalac $out/bin/scalac
|
|
|
|
ln -s ${dotty-bare}/bin/scaladoc $out/bin/scaladoc
|
|
|
|
ln -s ${dotty-bare}/bin/scala $out/bin/scala
|
|
|
|
ln -s ${dotty-bare}/bin/common $out/bin/common
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
inherit (dotty-bare) meta;
|
|
|
|
}
|