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