summary refs log tree commit diff
path: root/pkgs/development/compilers/scala-runners/default.nix
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-06-26 00:09:11 +0000
committerGitHub <noreply@github.com>2021-06-26 00:09:11 +0000
commit947012b992faa88e9d5b0d168c8f81c8e7cf995e (patch)
tree3b5f923312bb65436d1ffe6134af9ba8c9e9f0f2 /pkgs/development/compilers/scala-runners/default.nix
parent4966eff42cf9976319ac34fa28f3af224723a771 (diff)
parentf15360e6a41e77aa479dd47896e709fd77214e4f (diff)
downloadnixpkgs-947012b992faa88e9d5b0d168c8f81c8e7cf995e.tar
nixpkgs-947012b992faa88e9d5b0d168c8f81c8e7cf995e.tar.gz
nixpkgs-947012b992faa88e9d5b0d168c8f81c8e7cf995e.tar.bz2
nixpkgs-947012b992faa88e9d5b0d168c8f81c8e7cf995e.tar.lz
nixpkgs-947012b992faa88e9d5b0d168c8f81c8e7cf995e.tar.xz
nixpkgs-947012b992faa88e9d5b0d168c8f81c8e7cf995e.tar.zst
nixpkgs-947012b992faa88e9d5b0d168c8f81c8e7cf995e.zip
Merge staging-next into staging
Diffstat (limited to 'pkgs/development/compilers/scala-runners/default.nix')
-rw-r--r--pkgs/development/compilers/scala-runners/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/compilers/scala-runners/default.nix b/pkgs/development/compilers/scala-runners/default.nix
new file mode 100644
index 00000000000..e379bf4e38e
--- /dev/null
+++ b/pkgs/development/compilers/scala-runners/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, lib, fetchFromGitHub, jre, coursier }:
+
+stdenv.mkDerivation rec {
+  pname = "scala-runners";
+  version = "unstable-2020-02-02";
+
+  src = fetchFromGitHub {
+    repo = pname;
+    owner = "dwijnand";
+    rev = "95e03c9f9de0fe0ab61eeb6dea2a364f9d081d31";
+    sha256 = "0mvlc6fxsh5d6gsyak9n3g98g4r061n8pir37jpiqb7z00m9lfrx";
+  };
+
+  installPhase = ''
+    mkdir -p $out/bin $out/lib
+    sed -ie "s| cs | ${coursier}/bin/coursier |" scala-runner
+    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 ];
+  };
+}