nixpkgs/pkgs/development/compilers/scala/dotty.nix

24 lines
529 B
Nix
Raw Normal View History

{ stdenv, fetchurl, makeWrapper, jre, callPackage }:
2017-11-10 11:43:18 +01:00
let
dotty-bare = callPackage ./dotty-bare.nix {
inherit stdenv fetchurl makeWrapper jre;
2017-11-10 11:43:18 +01:00
};
in
2017-11-10 11:43:18 +01:00
stdenv.mkDerivation {
name = "dotty-${dotty-bare.version}";
2017-11-10 11:43:18 +01:00
2019-06-19 17:45:34 +02:00
dontUnpack = true;
2017-11-10 11:43:18 +01:00
installPhase = ''
mkdir -p $out/bin
2021-04-27 22:26:25 +02: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
2017-11-10 11:43:18 +01:00
'';
inherit (dotty-bare) meta;
2017-11-10 11:43:18 +01:00
}