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