1 { lib, stdenv, fetchurl, jre, unzip, makeWrapper }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/weka/${lib.replaceStrings ["."]["-"] "${pname}-${version}"}.zip";
9 sha256 = "sha256-8fVN4MXYqXNEmyVtXh1IrauHTBZWgWG8AvsGI5Y9Aj0=";
12 nativeBuildInputs = [ makeWrapper unzip ];
14 # The -Xmx1000M comes suggested from their download page:
15 # https://www.cs.waikato.ac.nz/ml/weka/downloading.html
17 mkdir -pv $out/share/weka
18 cp -Rv * $out/share/weka
20 makeWrapper ${jre}/bin/java $out/bin/weka \
21 --add-flags "-Xmx1000M -jar $out/share/weka/weka.jar"
25 homepage = "https://www.cs.waikato.ac.nz/ml/weka/";
26 description = "Collection of machine learning algorithms for data mining tasks";
28 sourceProvenance = with sourceTypes; [ binaryBytecode ];
29 license = licenses.gpl2Plus;
30 maintainers = [ maintainers.mimame ];
31 platforms = platforms.unix;