2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook,
|
2020-04-24 23:36:52 +00:00
|
|
|
texinfo, bison, flex, expat, file
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "udunits";
|
|
|
|
version = "2.2.27.6";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Unidata";
|
|
|
|
repo = "UDUNITS-2";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0621pac24c842dyipzaa59rh6pza9phdqi3snd4cq4pib0wjw6gm";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook texinfo bison flex file ];
|
|
|
|
buildInputs = [ expat ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.unidata.ucar.edu/software/udunits/";
|
|
|
|
description = "A C-based package for the programatic handling of units of physical quantities";
|
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
};
|
|
|
|
}
|