summary refs log tree commit diff
path: root/pkgs/data/fonts/weather-icons
diff options
context:
space:
mode:
authorPhilip Nelson <me@pnelson.ca>2018-10-13 14:19:21 -0700
committerPhilip Nelson <me@pnelson.ca>2018-10-13 14:19:21 -0700
commit3518c69d74dd6c07d14c92b92142c335cbb18d79 (patch)
treea2b4538094e428531db37199e5fa200d43f2af83 /pkgs/data/fonts/weather-icons
parent9179c1449db7b868504551cff9972acf6c1ce4f9 (diff)
downloadnixlib-3518c69d74dd6c07d14c92b92142c335cbb18d79.tar
nixlib-3518c69d74dd6c07d14c92b92142c335cbb18d79.tar.gz
nixlib-3518c69d74dd6c07d14c92b92142c335cbb18d79.tar.bz2
nixlib-3518c69d74dd6c07d14c92b92142c335cbb18d79.tar.lz
nixlib-3518c69d74dd6c07d14c92b92142c335cbb18d79.tar.xz
nixlib-3518c69d74dd6c07d14c92b92142c335cbb18d79.tar.zst
nixlib-3518c69d74dd6c07d14c92b92142c335cbb18d79.zip
weather-icons: init at 2.0.10
Diffstat (limited to 'pkgs/data/fonts/weather-icons')
-rw-r--r--pkgs/data/fonts/weather-icons/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/data/fonts/weather-icons/default.nix b/pkgs/data/fonts/weather-icons/default.nix
new file mode 100644
index 000000000000..8d818d219239
--- /dev/null
+++ b/pkgs/data/fonts/weather-icons/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, fetchzip }:
+
+let
+  version = "2.0.10";
+in fetchzip rec {
+  name = "weather-icons-${version}";
+
+  url = "https://github.com/erikflowers/weather-icons/archive/${version}.zip";
+
+  postFetch = ''
+    mkdir -p $out/share/fonts
+    unzip -j $downloadedFile weather-icons-${version}/_docs/font-source/weathericons-regular.otf -d $out/share/fonts/opentype
+  '';
+
+  sha256 = "10zny9987wybq55sm803hrjkp33dq1lgmnxc15kssr8yb81g6qrl";
+
+  meta = with stdenv.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 ];
+  };
+}