2019-05-13 02:55:32 +01:00
|
|
|
{ lib, fetchzip }:
|
2018-10-13 22:19:21 +01:00
|
|
|
|
|
|
|
let
|
2021-08-07 21:14:51 +01:00
|
|
|
version = "2.0.12";
|
2019-05-13 02:55:32 +01:00
|
|
|
in fetchzip {
|
2018-10-13 22:19:21 +01:00
|
|
|
name = "weather-icons-${version}";
|
|
|
|
|
2021-08-07 21:14:51 +01:00
|
|
|
url = "https://github.com/erikflowers/weather-icons/archive/refs/tags/${version}.zip";
|
2021-08-07 23:06:07 +01:00
|
|
|
sha256 = "sha256-NGPzAloeZa1nCazb+mjAbYw7ZYYDoKpLwcvzg1Ly9oM=";
|
2018-10-13 22:19:21 +01:00
|
|
|
|
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/fonts
|
|
|
|
unzip -j $downloadedFile weather-icons-${version}/_docs/font-source/weathericons-regular.otf -d $out/share/fonts/opentype
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
meta = with lib; {
|
2018-10-13 22:19:21 +01: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!
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://erikflowers.github.io/weather-icons/";
|
2018-10-13 22:19:21 +01:00
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ pnelson ];
|
|
|
|
};
|
|
|
|
}
|