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

23 lines
464 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
ln -s ${dotty-bare}/bin/dotc $out/bin/dotc
ln -s ${dotty-bare}/bin/dotd $out/bin/dotd
ln -s ${dotty-bare}/bin/dotr $out/bin/dotr
2017-11-10 11:43:18 +01:00
'';
inherit (dotty-bare) meta;
2017-11-10 11:43:18 +01:00
}