1 { stdenv, lib, fetchFromGitHub, coursier }:
3 stdenv.mkDerivation rec {
4 pname = "scala-runners";
5 version = "unstable-2021-07-28";
7 src = fetchFromGitHub {
10 rev = "9bf096ca81f4974d7327e291eac291e22b344a8f";
11 sha256 = "032fds5nr102h1lc81n9jc60jmxzivi4md4hcjrlqn076hfhj4ax";
16 mkdir -p $out/bin $out/lib
17 sed -ie "s| cs | ${coursier}/bin/cs |" scala-runner
18 cp scala-runner $out/lib
19 ln -s $out/lib/scala-runner $out/bin/scala
20 ln -s $out/lib/scala-runner $out/bin/scalac
21 ln -s $out/lib/scala-runner $out/bin/scalap
22 ln -s $out/lib/scala-runner $out/bin/scaladoc
26 homepage = "https://github.com/dwijnand/scala-runners";
27 description = "An alternative implementation of the Scala distribution's runners";
28 license = licenses.asl20;
29 platforms = platforms.all;
30 maintainers = with maintainers; [ hrhino ];