2018-04-05 20:21:16 +02:00
|
|
|
{ stdenv, fetchurl, jre, unzip, makeWrapper }:
|
2013-06-19 16:12:55 +02:00
|
|
|
|
2016-06-07 23:05:52 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "weka";
|
2018-04-05 18:08:28 +02:00
|
|
|
version = "3.9.2";
|
2016-06-07 23:05:52 +02:00
|
|
|
|
2013-06-19 16:12:55 +02:00
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://sourceforge/weka/${stdenv.lib.replaceChars ["."]["-"] "${pname}-${version}"}.zip";
|
2018-04-05 18:08:28 +02:00
|
|
|
sha256 = "0zwmhspmqb0a7cm6k6i0s6q3w19ws1g9dx3cp2v3g3vsif6cdh31";
|
2013-06-19 16:12:55 +02:00
|
|
|
};
|
|
|
|
|
2018-04-05 20:21:16 +02:00
|
|
|
buildInputs = [ unzip makeWrapper ];
|
2016-06-07 23:05:52 +02:00
|
|
|
|
2013-06-19 16:12:55 +02:00
|
|
|
# The -Xmx1000M comes suggested from their download page:
|
|
|
|
# http://www.cs.waikato.ac.nz/ml/weka/downloading.html
|
|
|
|
installPhase = ''
|
2018-04-05 20:21:16 +02:00
|
|
|
mkdir -pv $out/share/weka
|
2013-06-19 16:12:55 +02:00
|
|
|
cp -Rv * $out/share/weka
|
2016-06-07 23:05:52 +02:00
|
|
|
|
2018-04-05 20:21:16 +02:00
|
|
|
makeWrapper ${jre}/bin/java $out/bin/weka \
|
|
|
|
--add-flags "-Xmx1000M -jar $out/share/weka/weka.jar"
|
2013-06-19 16:12:55 +02:00
|
|
|
'';
|
2016-06-07 23:05:52 +02:00
|
|
|
|
2013-06-19 16:12:55 +02:00
|
|
|
meta = {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www.cs.waikato.ac.nz/ml/weka/;
|
2013-06-19 16:12:55 +02:00
|
|
|
description = "Collection of machine learning algorithms for data mining tasks";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2017-12-05 23:20:11 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.mimadrid ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2013-06-19 16:12:55 +02:00
|
|
|
};
|
|
|
|
}
|