depot/third_party/nixpkgs/pkgs/development/libraries/jama/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

30 lines
700 B
Nix

{stdenv, fetchurl, unzip, tnt}:
stdenv.mkDerivation rec {
pname = "jama";
version = "1.2.5";
src = fetchurl {
url = "https://math.nist.gov/tnt/jama125.zip";
sha256 = "031ns526fvi2nv7jzzv02i7i5sjcyr0gj884i3an67qhsx8vyckl";
};
buildInputs = [ unzip ];
propagatedBuildInputs = [ tnt ];
unpackPhase = ''
mkdir "${pname}-${version}"
unzip "$src"
'';
installPhase = ''
mkdir -p $out/include
cp *.h $out/include
'';
meta = with stdenv.lib; {
homepage = "https://math.nist.gov/tnt/";
description = "JAMA/C++ Linear Algebra Package: Java-like matrix C++ templates";
platforms = platforms.unix;
license = licenses.publicDomain;
};
}