3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/compilers/scala/dotty.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
540 B
Nix
Raw Normal View History

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