···1+{ stdenv, fetchgit, curl }:
2+3+stdenv.mkDerivation {
4+ name = "metar-20161013.1";
5+6+ src = fetchgit {
7+ url = "https://github.com/keesL/metar.git";
8+ rev = "20e9ca69faea330f6c2493b6829131c24cb55147";
9+ sha256 = "1fgrlnpasqf1ihh9y6zy6mzzybqx0lxvh7gmv03rjdb55dr42dxj";
10+ };
11+12+ buildInputs = [ curl ];
13+14+ meta = with stdenv.lib; {
15+ homepage = https://github.com/keesL/metar;
16+ license = licenses.gpl2;
17+ maintainers = [ maintainers.zalakain ];
18+ description = "Downloads weather reports and optionally decodes them";
19+ longDescription = ''
20+ METAR reports are meteorogical weather reports for aviation. Metar is a small
21+ program which downloads weather reports for user-specified stations and
22+ optionally decodes them into a human-readable format.
23+24+ Currently, metar supports decoding date/time, wind, visibility, cloud layers,
25+ temperature, air pressure and weather phenomena, such as rain, fog, etc. Also,
26+ more work in the area of clouds need to be done, as support for Cumulus or
27+ Cumulunimbus is not yet decoded.
28+ '';
29+ };
30+}