···11+{ stdenv, fetchgit, curl }:
22+33+stdenv.mkDerivation {
44+ name = "metar-20161013.1";
55+66+ src = fetchgit {
77+ url = "https://github.com/keesL/metar.git";
88+ rev = "20e9ca69faea330f6c2493b6829131c24cb55147";
99+ sha256 = "1fgrlnpasqf1ihh9y6zy6mzzybqx0lxvh7gmv03rjdb55dr42dxj";
1010+ };
1111+1212+ buildInputs = [ curl ];
1313+1414+ meta = with stdenv.lib; {
1515+ homepage = https://github.com/keesL/metar;
1616+ license = licenses.gpl2;
1717+ maintainers = [ maintainers.zalakain ];
1818+ description = "Downloads weather reports and optionally decodes them";
1919+ longDescription = ''
2020+ METAR reports are meteorogical weather reports for aviation. Metar is a small
2121+ program which downloads weather reports for user-specified stations and
2222+ optionally decodes them into a human-readable format.
2323+2424+ Currently, metar supports decoding date/time, wind, visibility, cloud layers,
2525+ temperature, air pressure and weather phenomena, such as rain, fog, etc. Also,
2626+ more work in the area of clouds need to be done, as support for Cumulus or
2727+ Cumulunimbus is not yet decoded.
2828+ '';
2929+ };
3030+}