about summary refs log tree commit diff
path: root/pkgs/development/compilers/scala/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/scala/default.nix')
-rw-r--r--pkgs/development/compilers/scala/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/development/compilers/scala/default.nix b/pkgs/development/compilers/scala/default.nix
new file mode 100644
index 0000000000000..6de5faa6026d2
--- /dev/null
+++ b/pkgs/development/compilers/scala/default.nix
@@ -0,0 +1,22 @@
+args: with args;
+
+stdenv.mkDerivation rec {
+  name = "scala-2.7.0-final";
+
+  src = fetchurl {
+    url = "http://www.scala-lang.org/downloads/distrib/files/${name}.tar.bz2";
+    sha256 = "17b9711bfddac611e907659cab4cb51f4114b886bbee243274d774b691dae248";
+  };
+
+  installPhase = ''
+    mkdir -p $out
+    mv * $out
+    rm -f $out/bin/*.bat
+  '';
+
+  phases = "unpackPhase installPhase";
+
+  meta = {
+    description = "Scala is a general purpose programming language";
+  };
+}