mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 00:53:12 +03:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
31 lines
1.1 KiB
Nix
31 lines
1.1 KiB
Nix
{ lib, stdenv, fetchgit, curl }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "metar-20161013.1";
|
|
|
|
src = fetchgit {
|
|
url = "https://github.com/keesL/metar.git";
|
|
rev = "20e9ca69faea330f6c2493b6829131c24cb55147";
|
|
sha256 = "1fgrlnpasqf1ihh9y6zy6mzzybqx0lxvh7gmv03rjdb55dr42dxj";
|
|
};
|
|
|
|
buildInputs = [ curl ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/keesL/metar";
|
|
license = licenses.gpl2;
|
|
maintainers = [ maintainers.zalakain ];
|
|
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.
|
|
'';
|
|
};
|
|
}
|