nixpkgs/pkgs/data/fonts/weather-icons/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
953 B
Nix
Raw Normal View History

{ lib, stdenvNoCC, fetchzip }:
2018-10-13 21:19:21 +00:00
stdenvNoCC.mkDerivation rec {
pname = "weather-icons";
2021-08-07 20:14:51 +00:00
version = "2.0.12";
2018-10-13 21:19:21 +00:00
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
'';
2018-10-13 21:19:21 +00:00
meta = with lib; {
2018-10-13 21:19:21 +00:00
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/";
2018-10-13 21:19:21 +00:00
license = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ pnelson ];
};
}