2010-10-14 12:53:59 +01:00
|
|
|
{stdenv, fetchurl, unzip, tnt}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "jama-${version}";
|
|
|
|
version = "1.2.5";
|
2018-11-01 19:55:38 +00:00
|
|
|
|
2010-10-14 12:53:59 +01:00
|
|
|
src = fetchurl {
|
2018-03-25 06:04:25 +01:00
|
|
|
url = https://math.nist.gov/tnt/jama125.zip;
|
2010-10-14 12:53:59 +01:00
|
|
|
sha256 = "031ns526fvi2nv7jzzv02i7i5sjcyr0gj884i3an67qhsx8vyckl";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
propagatedBuildInputs = [ tnt ];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
mkdir "${name}"
|
|
|
|
unzip "$src"
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/include
|
|
|
|
cp *.h $out/include
|
|
|
|
'';
|
|
|
|
|
2018-11-01 19:55:38 +00:00
|
|
|
meta = with stdenv.lib; {
|
2018-03-25 06:04:25 +01:00
|
|
|
homepage = https://math.nist.gov/tnt/;
|
2010-10-14 12:53:59 +01:00
|
|
|
description = "JAMA/C++ Linear Algebra Package: Java-like matrix C++ templates";
|
2018-11-01 19:55:38 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.publicDomain;
|
2010-10-14 12:53:59 +01:00
|
|
|
};
|
2016-08-02 18:50:55 +01:00
|
|
|
}
|