nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{stdenv, fetchurl, unzip}:
2
3stdenv.mkDerivation rec {
4 name = "tnt-${version}";
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 buildInputs = [ 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 = stdenv.lib.licenses.publicDomain;
23 platforms = stdenv.lib.platforms.unix;
24 };
25}