nixpkgs/pkgs/development/libraries/tnt/default.nix

26 lines
582 B
Nix
Raw Normal View History

{lib, stdenv, fetchurl, unzip}:
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
pname = "tnt";
version = "3.0.12";
src = fetchurl {
url = "https://math.nist.gov/tnt/tnt_3_0_12.zip";
sha256 = "1bzkfdb598584qlc058n8wqq9vbz714gr5r57401rsa9qaxhk5j7";
};
nativeBuildInputs = [ 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 = lib.licenses.publicDomain;
platforms = lib.platforms.unix;
};
}