nixpkgs/pkgs/development/libraries/tnt/default.nix
Ryan Mulligan b189247ba0 treewide: use more HTTPS URLs
Uses the HTTPS url for cases where the existing URL has a permanent
redirect. For each domain, at least one fixed derivation URL was
downloaded to test the domain is properly serving downloads.

Also fixes jbake source URL, which was broken.
2018-03-24 22:04:25 -07:00

25 lines
549 B
Nix

{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;
};
}