mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
Merge pull request #38478 from r-ryantm/auto-update/weka
weka: 3.8.2 -> 3.9.2
This commit is contained in:
commit
f444c1893b
|
@ -1,28 +1,24 @@
|
|||
{ stdenv, fetchurl, jre, unzip }:
|
||||
{ stdenv, fetchurl, jre, unzip, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "weka-${version}";
|
||||
version = "3.8.2";
|
||||
version = "3.9.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/weka/${stdenv.lib.replaceChars ["."]["-"] name}.zip";
|
||||
sha256 = "0p353lhhcv3swwn1bl64vkyjk480vv9ghhlyqjxiar4p3xifjayb";
|
||||
sha256 = "0zwmhspmqb0a7cm6k6i0s6q3w19ws1g9dx3cp2v3g3vsif6cdh31";
|
||||
};
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
buildInputs = [ unzip makeWrapper ];
|
||||
|
||||
# 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
|
||||
mkdir -pv $out/share/weka
|
||||
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
|
||||
makeWrapper ${jre}/bin/java $out/bin/weka \
|
||||
--add-flags "-Xmx1000M -jar $out/share/weka/weka.jar"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
|
Loading…
Reference in a new issue