1{lib, stdenv, fetchurl, unzip}:
2
3stdenv.mkDerivation {
4 pname = "tnt";
5 version = "3.0.12";
6
7 src = fetchurl {
8 url = "https://math.nist.gov/tnt/tnt_3_0_12.zip";
9 sha256 = "1bzkfdb598584qlc058n8wqq9vbz714gr5r57401rsa9qaxhk5j7";
10 };
11
12 nativeBuildInputs = [ unzip ];
13
14 installPhase = ''
15 mkdir -p $out/include
16 cp *.h $out/include
17 '';
18
19 meta = {
20 homepage = "https://math.nist.gov/tnt/";
21 description = "Template Numerical Toolkit: C++ headers for array and matrices";
22 license = lib.licenses.publicDomain;
23 platforms = lib.platforms.unix;
24 };
25}