3
0
Fork 0
forked from mirrors/nixpkgs
svn path=/nixpkgs/trunk/; revision=11595
This commit is contained in:
Tobias Hammerschmidt 2008-04-11 22:13:51 +00:00
parent 7b9624cda6
commit d62d2eea35

View file

@ -1,22 +1,9 @@
args: with args; args:
stdenv.mkDerivation rec { if args.stdenv.system == "i686-linux" || args.stdenv.system == "x86_64-linux" then
name = "scala-2.7.0-final"; (import ./jdk6-linux.nix) args
else if args.stdenv.system == "powerpc-linux" then
(import ./jdk5-ibm-powerpc-linux.nix) (removeAttrs args ["libstdcpp5" "pluginSupport" "xlibs" "installjdk"])
else
abort "the JDK is not supported on this platform"
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";
};
}