about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/tnt
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/tnt')
-rw-r--r--nixpkgs/pkgs/development/libraries/tnt/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/tnt/default.nix b/nixpkgs/pkgs/development/libraries/tnt/default.nix
new file mode 100644
index 000000000000..13e8f783915d
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/tnt/default.nix
@@ -0,0 +1,25 @@
+{stdenv, fetchurl, unzip}:
+
+stdenv.mkDerivation {
+  pname = "tnt";
+  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";
+    license = stdenv.lib.licenses.publicDomain;
+    platforms = stdenv.lib.platforms.unix;
+  };
+}