b189247ba0
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.
29 lines
653 B
Nix
29 lines
653 B
Nix
{stdenv, fetchurl, unzip, tnt}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "jama-${version}";
|
|
version = "1.2.5";
|
|
|
|
src = fetchurl {
|
|
url = https://math.nist.gov/tnt/jama125.zip;
|
|
sha256 = "031ns526fvi2nv7jzzv02i7i5sjcyr0gj884i3an67qhsx8vyckl";
|
|
};
|
|
|
|
buildInputs = [ unzip ];
|
|
propagatedBuildInputs = [ tnt ];
|
|
|
|
unpackPhase = ''
|
|
mkdir "${name}"
|
|
unzip "$src"
|
|
'';
|
|
installPhase = ''
|
|
mkdir -p $out/include
|
|
cp *.h $out/include
|
|
'';
|
|
|
|
meta = {
|
|
homepage = https://math.nist.gov/tnt/;
|
|
description = "JAMA/C++ Linear Algebra Package: Java-like matrix C++ templates";
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|