summary refs log tree commit diff
path: root/pkgs/development/libraries/tnt/default.nix
blob: 23ef997e5ce1568211c6a7fdebb1d7879734df04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{stdenv, fetchurl, unzip}:

stdenv.mkDerivation rec {
  name = "tnt-${version}";
  version = "3.0.12";
  
  src = fetchurl {
    url = https://math.nist.gov/tnt/tnt_3_0_12.zip;
    sha256 = "1bzkfdb598584qlc058n8wqq9vbz714gr5r57401rsa9qaxhk5j7";
  };

  buildInputs = [ unzip ];

  installPhase = ''
      mkdir -p $out/include
      cp *.h $out/include
  '';

  meta = {
    homepage = https://math.nist.gov/tnt/;
    description = "Template Numerical Toolkit: C++ headers for array and matrices";
    platforms = stdenv.lib.platforms.unix;
  };
}