mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
23 lines
464 B
Nix
23 lines
464 B
Nix
{ 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
|
|
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
|
|
'';
|
|
|
|
inherit (dotty-bare) meta;
|
|
}
|