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

31 lines
696 B
Nix
Raw Normal View History

{stdenv, fetchurl, unzip, tnt}:
stdenv.mkDerivation rec {
pname = "jama";
version = "1.2.5";
2018-11-01 19:55:38 +00:00
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
'';
2018-11-01 19:55:38 +00:00
meta = with stdenv.lib; {
homepage = https://math.nist.gov/tnt/;
description = "JAMA/C++ Linear Algebra Package: Java-like matrix C++ templates";
2018-11-01 19:55:38 +00:00
platforms = platforms.unix;
license = licenses.publicDomain;
};
}