1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/compilers/scala/dotty.nix

23 lines
464 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 {
name = "dotty-${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
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 10:43:18 +00:00
'';
inherit (dotty-bare) meta;
2017-11-10 10:43:18 +00:00
}