2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, jre, unzip, makeWrapper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "weka";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "3.9.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-12-17 10:02:37 +00:00
|
|
|
url = "mirror://sourceforge/weka/${lib.replaceStrings ["."]["-"] "${pname}-${version}"}.zip";
|
|
|
|
sha256 = "sha256-8fVN4MXYqXNEmyVtXh1IrauHTBZWgWG8AvsGI5Y9Aj0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper unzip ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# The -Xmx1000M comes suggested from their download page:
|
|
|
|
# http://www.cs.waikato.ac.nz/ml/weka/downloading.html
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -pv $out/share/weka
|
|
|
|
cp -Rv * $out/share/weka
|
|
|
|
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/weka \
|
|
|
|
--add-flags "-Xmx1000M -jar $out/share/weka/weka.jar"
|
|
|
|
'';
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.cs.waikato.ac.nz/ml/weka/";
|
|
|
|
description = "Collection of machine learning algorithms for data mining tasks";
|
2022-12-17 10:02:37 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.mimame ];
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|