summary refs log tree commit diff
path: root/pkgs/development/libraries/jama/default.nix
blob: 29fabdbb3b63a2783d5f9c2717ddbdd5eb97d265 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{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 = 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;
  };
}