about summary refs log tree commit diff
path: root/nixpkgs/pkgs/data/fonts/weather-icons/default.nix
blob: 00f9cebac121f158ac9ff90485f1b458a236e7f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib, stdenvNoCC, fetchzip }:

stdenvNoCC.mkDerivation rec {
  pname = "weather-icons";
  version = "2.0.12";

  src = fetchzip {
    url = "https://github.com/erikflowers/weather-icons/archive/refs/tags/${version}.zip";
    hash = "sha256-0ZFH2awUo4BkTpK1OsWZ4YKczJHo+HHM6ezGBJAmT+U=";
  };

  installPhase = ''
    runHook preInstall

    install -Dm644 _docs/font-source/weathericons-regular.otf -t $out/share/fonts/opentype

    runHook postInstall
  '';

  meta = with lib; {
    description = "Weather Icons";
    longDescription = ''
      Weather Icons is the only icon font and CSS with 222 weather themed icons,
      ready to be dropped right into Bootstrap, or any project that needs high
      quality weather, maritime, and meteorological based icons!
    '';
    homepage = "https://erikflowers.github.io/weather-icons/";
    license = licenses.ofl;
    platforms = platforms.all;
    maintainers = with maintainers; [ pnelson ];
  };
}