mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
36 lines
976 B
Nix
36 lines
976 B
Nix
{ stdenv, fetchurl, jre, unzip }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "weka-${version}";
|
|
version = "3.8.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/weka/${stdenv.lib.replaceChars ["."]["-"] name}.zip";
|
|
sha256 = "16n1a74d1cispp0a22zyiivi78izi354y67gmbyvv2lv9sc45wmk";
|
|
};
|
|
|
|
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];
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|