2021-11-08 08:59:01 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, curl }:
|
2017-05-18 00:17:31 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-11-07 20:29:51 +00:00
|
|
|
pname = "metar";
|
2021-11-08 08:59:01 +00:00
|
|
|
version = "unstable-2017-02-17";
|
2017-05-18 00:17:31 +01:00
|
|
|
|
2021-11-08 08:59:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "keesL";
|
|
|
|
repo = "metar";
|
2017-05-18 00:17:31 +01:00
|
|
|
rev = "20e9ca69faea330f6c2493b6829131c24cb55147";
|
|
|
|
sha256 = "1fgrlnpasqf1ihh9y6zy6mzzybqx0lxvh7gmv03rjdb55dr42dxj";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ curl ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/keesL/metar";
|
2017-05-18 00:17:31 +01:00
|
|
|
description = "Downloads weather reports and optionally decodes them";
|
|
|
|
longDescription = ''
|
|
|
|
METAR reports are meteorogical weather reports for aviation. Metar is a small
|
|
|
|
program which downloads weather reports for user-specified stations and
|
|
|
|
optionally decodes them into a human-readable format.
|
|
|
|
|
|
|
|
Currently, metar supports decoding date/time, wind, visibility, cloud layers,
|
|
|
|
temperature, air pressure and weather phenomena, such as rain, fog, etc. Also,
|
|
|
|
more work in the area of clouds need to be done, as support for Cumulus or
|
|
|
|
Cumulunimbus is not yet decoded.
|
|
|
|
'';
|
2021-11-08 08:59:01 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ zalakain ];
|
2017-05-18 00:17:31 +01:00
|
|
|
};
|
|
|
|
}
|