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