nixpkgs/pkgs/development/libraries/jama/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

31 lines
696 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;
};
}