parent
9b7a53d9cb
commit
aa8eba9d95
@ -1,32 +1,34 @@
|
||||
{ stdenv, fetchurl, jre, unzip }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "weka-3.6.12";
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "weka-${version}";
|
||||
version = "3.8.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/weka/weka-3-6-12.zip";
|
||||
sha256 = "0sdhiv1nr5rxgjry05srsnynsydkyny79zvaxdj6dk8m1768qksh";
|
||||
url = "mirror://sourceforge/weka/${stdenv.lib.replaceChars ["."]["-"] name}.zip";
|
||||
sha256 = "2586298688059a025e2810b1ffc73f4fb3cf81ebf2183d8d19b0763d33857f61";
|
||||
};
|
||||
|
||||
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";
|
||||
license = stdenv.lib.licenses.gpl2Plus;
|
||||
maintainer = [stdenv.lib.maintainers.mimadrid];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user