mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 08:36:41 +01:00
Merge pull request #171641 from raboof/rename-dotty-scala_3
dotty: rename to scala_3
This commit is contained in:
commit
b27f78f56e
4 changed files with 28 additions and 27 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "3.1.0";
|
||||
pname = "dotty-bare";
|
||||
pname = "scala-bare";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/lampepfl/dotty/releases/download/${version}/scala3-${version}.tar.gz";
|
24
pkgs/development/compilers/scala/default.nix
Normal file
24
pkgs/development/compilers/scala/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ stdenv, fetchurl, makeWrapper, jre, callPackage }:
|
||||
|
||||
let
|
||||
bare = callPackage ./bare.nix {
|
||||
inherit stdenv fetchurl makeWrapper jre;
|
||||
};
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "scala";
|
||||
inherit (bare) version;
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
ln -s ${bare}/bin/scalac $out/bin/scalac
|
||||
ln -s ${bare}/bin/scaladoc $out/bin/scaladoc
|
||||
ln -s ${bare}/bin/scala $out/bin/scala
|
||||
ln -s ${bare}/bin/common $out/bin/common
|
||||
'';
|
||||
|
||||
inherit (bare) meta;
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
{ stdenv, fetchurl, makeWrapper, jre, callPackage }:
|
||||
|
||||
let
|
||||
dotty-bare = callPackage ./dotty-bare.nix {
|
||||
inherit stdenv fetchurl makeWrapper jre;
|
||||
};
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "dotty";
|
||||
inherit (dotty-bare) version;
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
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
|
||||
'';
|
||||
|
||||
inherit (dotty-bare) meta;
|
||||
}
|
|
@ -12449,8 +12449,6 @@ with pkgs;
|
|||
|
||||
dictu = callPackage ../development/compilers/dictu { };
|
||||
|
||||
dotty = callPackage ../development/compilers/scala/dotty.nix { };
|
||||
|
||||
ecl = callPackage ../development/compilers/ecl { };
|
||||
ecl_16_1_2 = callPackage ../development/compilers/ecl/16.1.2.nix { };
|
||||
|
||||
|
@ -13890,6 +13888,9 @@ with pkgs;
|
|||
scala_2_11 = callPackage ../development/compilers/scala/2.x.nix { majorVersion = "2.11"; jre = jdk8; };
|
||||
scala_2_12 = callPackage ../development/compilers/scala/2.x.nix { majorVersion = "2.12"; };
|
||||
scala_2_13 = callPackage ../development/compilers/scala/2.x.nix { majorVersion = "2.13"; };
|
||||
scala_3 = callPackage ../development/compilers/scala { };
|
||||
# deprecated
|
||||
dotty = scala_3;
|
||||
|
||||
scala = scala_2_13;
|
||||
scala-runners = callPackage ../development/compilers/scala-runners {
|
||||
|
|
Loading…
Reference in a new issue