mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
05bffb5a0d
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/weka/versions. These checks were done: - built on NixOS - Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.) - found 3.9.2 with grep in /nix/store/rv6aq5p1qacvpvaw9vszawzidsh8xdl9-weka-3.9.2 - directory tree listing: https://gist.github.com/c1ee16794a22549147d4d292cad986e5
36 lines
979 B
Nix
36 lines
979 B
Nix
{ stdenv, fetchurl, jre, unzip }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "weka-${version}";
|
|
version = "3.9.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/weka/${stdenv.lib.replaceChars ["."]["-"] name}.zip";
|
|
sha256 = "0zwmhspmqb0a7cm6k6i0s6q3w19ws1g9dx3cp2v3g3vsif6cdh31";
|
|
};
|
|
|
|
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;
|
|
maintainers = [ stdenv.lib.maintainers.mimadrid ];
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|