1{ lib, stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 version = "3.6.1";
5 pname = "commons-math";
6
7 src = fetchurl {
8 url = "mirror://apache/commons/math/binaries/commons-math3-${version}-bin.tar.gz";
9 sha256 = "0x4nx5pngv2n4ga11c1s4w2mf6cwydwkgs7da6wwvcjraw57bhkz";
10 };
11
12 installPhase = ''
13 tar xf ${src}
14 mkdir -p $out/share/java
15 cp *.jar $out/share/java/
16 '';
17
18 meta = {
19 homepage = "https://commons.apache.org/proper/commons-math/";
20 description = "A library of lightweight, self-contained mathematics and statistics components";
21 maintainers = with lib.maintainers; [ copumpkin ];
22 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
23 license = lib.licenses.asl20;
24 platforms = with lib.platforms; unix;
25 };
26}