added scala an object oriented and functional programming language
svn path=/nixpkgs/trunk/; revision=11593
This commit is contained in:
parent
085dc5bc74
commit
d5d1cd93de
@ -1,10 +1,22 @@
|
|||||||
args:
|
args: with args;
|
||||||
|
|
||||||
if args.stdenv.system == "i686-linux" || args.stdenv.system == "x86_64-linux" then
|
stdenv.mkDerivation rec {
|
||||||
(import ./jdk6-linux.nix) args
|
name = "scala-2.7.0-final";
|
||||||
|
|
||||||
else if args.stdenv.system == "powerpc-linux" then
|
src = fetchurl {
|
||||||
(import ./jdk5-ibm-powerpc-linux.nix) (removeAttrs args ["libstdcpp5" "pluginSupport" "xlibs" "installjdk"])
|
url = "http://www.scala-lang.org/downloads/distrib/files/${name}.tar.bz2";
|
||||||
|
sha256 = "17b9711bfddac611e907659cab4cb51f4114b886bbee243274d774b691dae248";
|
||||||
|
};
|
||||||
|
|
||||||
else
|
installPhase = ''
|
||||||
abort "the JDK is not supported on this platform"
|
mkdir -p $out
|
||||||
|
mv * $out
|
||||||
|
rm -f $out/bin/*.bat
|
||||||
|
'';
|
||||||
|
|
||||||
|
phases = "unpackPhase installPhase";
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Scala is a general purpose programming language";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
@ -1635,6 +1635,10 @@ let pkgs = rec {
|
|||||||
inherit mysql libxml2 fcgi;
|
inherit mysql libxml2 fcgi;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
scala = import ../development/compilers/scala {
|
||||||
|
inherit stdenv fetchurl;
|
||||||
|
};
|
||||||
|
|
||||||
strategoLibraries = import ../development/compilers/strategoxt/libraries/stratego-libraries-0.17pre.nix {
|
strategoLibraries = import ../development/compilers/strategoxt/libraries/stratego-libraries-0.17pre.nix {
|
||||||
inherit stdenv fetchurl pkgconfig aterm;
|
inherit stdenv fetchurl pkgconfig aterm;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user