mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
34 lines
1.1 KiB
Nix
34 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, curl }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "metar";
|
|
version = "unstable-2017-02-17";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "keesL";
|
|
repo = "metar";
|
|
rev = "20e9ca69faea330f6c2493b6829131c24cb55147";
|
|
sha256 = "1fgrlnpasqf1ihh9y6zy6mzzybqx0lxvh7gmv03rjdb55dr42dxj";
|
|
};
|
|
|
|
buildInputs = [ curl ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/keesL/metar";
|
|
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.
|
|
'';
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ zalakain ];
|
|
mainProgram = "metar";
|
|
};
|
|
}
|