2013-06-19 15:12:55 +01:00
|
|
|
{ stdenv, fetchurl, jre, unzip }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2015-02-13 15:19:35 +00:00
|
|
|
name = "weka-3.6.12";
|
2013-06-19 15:12:55 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-02-13 15:19:35 +00:00
|
|
|
url = "mirror://sourceforge/weka/weka-3-6-12.zip";
|
|
|
|
sha256 = "0sdhiv1nr5rxgjry05srsnynsydkyny79zvaxdj6dk8m1768qksh";
|
2013-06-19 15:12:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
|
|
|
|
# The -Xmx1000M comes suggested from their download page:
|
|
|
|
# http://www.cs.waikato.ac.nz/ml/weka/downloading.html
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -pv $out/share/weka $out/bin
|
|
|
|
cp -Rv * $out/share/weka
|
|
|
|
|
|
|
|
cat > $out/bin/weka << EOF
|
|
|
|
#!${stdenv.shell}
|
|
|
|
${jre}/bin/java -Xmx1000M -jar $out/share/weka/weka.jar
|
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod +x $out/bin/weka
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://www.cs.waikato.ac.nz/ml/weka/";
|
|
|
|
description = "Collection of machine learning algorithms for data mining tasks";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2013-06-19 15:12:55 +01:00
|
|
|
};
|
|
|
|
}
|