2021-03-23 23:38:52 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, bison
|
|
|
|
, expat
|
|
|
|
, file
|
|
|
|
, flex
|
|
|
|
, texinfo
|
2014-11-21 14:15:40 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "udunits";
|
2021-03-23 23:38:52 +01:00
|
|
|
version = "unstable-2021-03-17";
|
2021-01-19 22:20:11 +01:00
|
|
|
|
2018-08-27 00:26:07 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Unidata";
|
|
|
|
repo = "UDUNITS-2";
|
2021-03-23 23:38:52 +01:00
|
|
|
rev = "c83da987387db1174cd2266b73dd5dd556f4476b";
|
|
|
|
hash = "sha256-+HW21+r65OroCxMK2/B5fe7zHs4hD4xyoJK2bhdJGyQ=";
|
2018-08-27 00:26:07 +02:00
|
|
|
};
|
2014-11-21 14:15:40 +01:00
|
|
|
|
2021-03-23 23:38:52 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
texinfo
|
|
|
|
bison
|
|
|
|
flex
|
|
|
|
file
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
expat
|
|
|
|
];
|
2014-11-21 14:15:40 +01:00
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.unidata.ucar.edu/software/udunits/";
|
2018-08-27 00:26:07 +02:00
|
|
|
description = "A C-based package for the programatic handling of units of physical quantities";
|
2021-03-23 23:38:52 +01:00
|
|
|
longDescription = ''
|
|
|
|
The UDUNITS package supports units of physical quantities. Its C library
|
|
|
|
provides for arithmetic manipulation of units and for conversion of
|
|
|
|
numeric values between compatible units. The package contains an extensive
|
|
|
|
unit database, which is in XML format and user-extendable. The package
|
|
|
|
also contains a command-line utility for investigating units and
|
|
|
|
converting values.
|
|
|
|
'';
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres pSub ];
|
2021-09-24 11:01:25 +02:00
|
|
|
platforms = platforms.all;
|
|
|
|
mainProgram = "udunits2";
|
2018-08-27 00:26:07 +02:00
|
|
|
};
|
2014-11-21 14:15:40 +01:00
|
|
|
}
|