2021-01-21 17:00:13 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
|
|
|
}:
|
2014-09-20 06:19:32 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-10-16 07:02:26 +00:00
|
|
|
version = "3.6.1";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "commons-math";
|
2014-09-20 06:19:32 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://apache/commons/math/binaries/commons-math3-${version}-bin.tar.gz";
|
2018-10-16 07:02:26 +00:00
|
|
|
sha256 = "0x4nx5pngv2n4ga11c1s4w2mf6cwydwkgs7da6wwvcjraw57bhkz";
|
2014-09-20 06:19:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
tar xf ${src}
|
|
|
|
mkdir -p $out/share/java
|
|
|
|
cp *.jar $out/share/java/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2021-12-29 15:02:51 +00:00
|
|
|
homepage = "https://commons.apache.org/proper/commons-math/";
|
2014-09-20 06:19:32 +00:00
|
|
|
description = "Library of lightweight, self-contained mathematics and statistics components";
|
2021-01-21 17:00:13 +00:00
|
|
|
maintainers = with lib.maintainers; [ copumpkin ];
|
2022-06-02 13:38:41 +00:00
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
platforms = with lib.platforms; unix;
|
2014-09-20 06:19:32 +00:00
|
|
|
};
|
|
|
|
}
|