2021-01-21 09:00:13 -08:00
|
|
|
{lib, stdenv, fetchurl, unzip}:
|
2010-10-14 04:53:53 -07:00
|
|
|
|
2019-08-13 14:52:01 -07:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "tnt";
|
2010-10-14 04:53:53 -07:00
|
|
|
version = "3.0.12";
|
2021-01-19 13:20:11 -08:00
|
|
|
|
2010-10-14 04:53:53 -07:00
|
|
|
src = fetchurl {
|
2020-03-31 18:11:51 -07:00
|
|
|
url = "https://math.nist.gov/tnt/tnt_3_0_12.zip";
|
2010-10-14 04:53:53 -07:00
|
|
|
sha256 = "1bzkfdb598584qlc058n8wqq9vbz714gr5r57401rsa9qaxhk5j7";
|
|
|
|
};
|
|
|
|
|
2021-02-20 13:01:53 -08:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2010-10-14 04:53:53 -07:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/include
|
|
|
|
cp *.h $out/include
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://math.nist.gov/tnt/";
|
2010-10-14 04:53:53 -07:00
|
|
|
description = "Template Numerical Toolkit: C++ headers for array and matrices";
|
2021-01-21 09:00:13 -08:00
|
|
|
license = lib.licenses.publicDomain;
|
|
|
|
platforms = lib.platforms.unix;
|
2010-10-14 04:53:53 -07:00
|
|
|
};
|
2016-08-02 10:50:55 -07:00
|
|
|
}
|