scala: add expression for scala 2.10.x branch.
This commit is contained in:
parent
6441a9c1d0
commit
1e80c57274
34
pkgs/development/compilers/scala/2.9.nix
Normal file
34
pkgs/development/compilers/scala/2.9.nix
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{ stdenv, fetchurl }:
|
||||||
|
|
||||||
|
# at runtime, need jre or jdk
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "scala-2.9.2";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://www.scala-lang.org/downloads/distrib/files/${name}.tgz";
|
||||||
|
sha256 = "0s1shpzw2hyz7bwxdqq19rcrzbpq4d7b0kvdvjvhy7h05x496b46";
|
||||||
|
};
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out
|
||||||
|
rm bin/*.bat
|
||||||
|
rm lib/scalacheck.jar
|
||||||
|
mv * $out
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Scala is a general purpose programming language";
|
||||||
|
longDescription = ''
|
||||||
|
Scala is a general purpose programming language designed to express
|
||||||
|
common programming patterns in a concise, elegant, and type-safe way.
|
||||||
|
It smoothly integrates features of object-oriented and functional
|
||||||
|
languages, enabling Java and other programmers to be more productive.
|
||||||
|
Code sizes are typically reduced by a factor of two to three when
|
||||||
|
compared to an equivalent Java application.
|
||||||
|
'';
|
||||||
|
homepage = http://www.scala-lang.org/;
|
||||||
|
license = "BSD";
|
||||||
|
platforms = stdenv.lib.platforms.all;
|
||||||
|
};
|
||||||
|
}
|
@ -1,20 +1,23 @@
|
|||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchurl, makeWrapper, jre }:
|
||||||
|
|
||||||
# at runtime, need jre or jdk
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "scala-2.9.2";
|
name = "scala-2.10.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://www.scala-lang.org/downloads/distrib/files/${name}.tgz";
|
url = "http://www.scala-lang.org/files/archive/${name}.tgz";
|
||||||
sha256 = "0s1shpzw2hyz7bwxdqq19rcrzbpq4d7b0kvdvjvhy7h05x496b46";
|
sha256 = "16ac935wydrxrvijv4ldnz4vl2xk8yb3yzb9bsi3nb9sic7fxl95";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = [ jre makeWrapper ] ;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
rm bin/*.bat
|
rm bin/*.bat
|
||||||
rm lib/scalacheck.jar
|
|
||||||
mv * $out
|
mv * $out
|
||||||
|
|
||||||
|
for p in $(ls $out/bin/) ; do
|
||||||
|
wrapProgram $out/bin/$p --prefix PATH ":" ${jre}/bin ;
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -3007,7 +3007,9 @@ let
|
|||||||
inherit makeWrapper clisp;
|
inherit makeWrapper clisp;
|
||||||
};
|
};
|
||||||
|
|
||||||
scala = callPackage ../development/compilers/scala { };
|
scala_2_9 = callPackage ../development/compilers/scala/2.9.nix { };
|
||||||
|
scala_2_10 = callPackage ../development/compilers/scala { };
|
||||||
|
scala = scala_2_10;
|
||||||
|
|
||||||
sdcc = callPackage ../development/compilers/sdcc {
|
sdcc = callPackage ../development/compilers/sdcc {
|
||||||
boost = boost149; # sdcc 3.2.0 fails to build with boost 1.53
|
boost = boost149; # sdcc 3.2.0 fails to build with boost 1.53
|
||||||
|
Loading…
Reference in New Issue
Block a user