2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook,
|
2018-08-26 23:26:07 +01:00
|
|
|
texinfo, bison, flex, expat, file
|
2014-11-21 13:15:40 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "udunits";
|
2018-08-26 23:26:07 +01:00
|
|
|
version = "2.2.27.6";
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2018-08-26 23:26:07 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Unidata";
|
|
|
|
repo = "UDUNITS-2";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0621pac24c842dyipzaa59rh6pza9phdqi3snd4cq4pib0wjw6gm";
|
|
|
|
};
|
2014-11-21 13:15:40 +00:00
|
|
|
|
2018-08-26 23:26:07 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook texinfo bison flex file ];
|
|
|
|
buildInputs = [ expat ];
|
2014-11-21 13:15:40 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.unidata.ucar.edu/software/udunits/";
|
2018-08-26 23:26:07 +01:00
|
|
|
description = "A C-based package for the programatic handling of units of physical quantities";
|
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
};
|
2014-11-21 13:15:40 +00:00
|
|
|
}
|