2022-06-16 17:23:12 +00:00
|
|
|
{ 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;
|
2022-12-17 10:02:37 +00:00
|
|
|
} // { inherit bare; }
|