2021-08-10 14:31:46 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, coursier }:
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "scala-runners";
|
2021-08-10 14:31:46 +00:00
|
|
|
version = "unstable-2021-07-28";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = pname;
|
|
|
|
owner = "dwijnand";
|
2021-08-10 14:31:46 +00:00
|
|
|
rev = "9bf096ca81f4974d7327e291eac291e22b344a8f";
|
|
|
|
sha256 = "032fds5nr102h1lc81n9jc60jmxzivi4md4hcjrlqn076hfhj4ax";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2021-08-10 14:31:46 +00:00
|
|
|
dontBuild = true;
|
2021-06-28 23:13:55 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/lib
|
2021-12-06 16:07:01 +00:00
|
|
|
sed -ie "s| cs | ${coursier}/bin/cs |" scala-runner
|
2021-06-28 23:13:55 +00:00
|
|
|
cp scala-runner $out/lib
|
|
|
|
ln -s $out/lib/scala-runner $out/bin/scala
|
|
|
|
ln -s $out/lib/scala-runner $out/bin/scalac
|
|
|
|
ln -s $out/lib/scala-runner $out/bin/scalap
|
|
|
|
ln -s $out/lib/scala-runner $out/bin/scaladoc
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/dwijnand/scala-runners";
|
|
|
|
description = "An alternative implementation of the Scala distribution's runners";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ hrhino ];
|
|
|
|
};
|
|
|
|
}
|