Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
38 lines
557 B
Nix
38 lines
557 B
Nix
{
|
|
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;
|
|
}
|
|
// {
|
|
inherit bare;
|
|
}
|