about summary refs log tree commit diff
path: root/pkgs/data
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2019-05-19 20:35:41 -0500
committerWill Dietz <w@wdtz.org>2019-05-19 20:50:54 -0500
commitc03630a579acb251bfe710d2eabbac9cab255b72 (patch)
treefd08e2882ffe566bddd8e838e336dda1d4aec571 /pkgs/data
parent971b731fc18c86569211a460ef62e1d8001799e9 (diff)
downloadnixlib-c03630a579acb251bfe710d2eabbac9cab255b72.tar
nixlib-c03630a579acb251bfe710d2eabbac9cab255b72.tar.gz
nixlib-c03630a579acb251bfe710d2eabbac9cab255b72.tar.bz2
nixlib-c03630a579acb251bfe710d2eabbac9cab255b72.tar.lz
nixlib-c03630a579acb251bfe710d2eabbac9cab255b72.tar.xz
nixlib-c03630a579acb251bfe710d2eabbac9cab255b72.tar.zst
nixlib-c03630a579acb251bfe710d2eabbac9cab255b72.zip
redhat-official-fonts: init at 2.2.0
Diffstat (limited to 'pkgs/data')
-rw-r--r--pkgs/data/fonts/redhat-official/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/data/fonts/redhat-official/default.nix b/pkgs/data/fonts/redhat-official/default.nix
new file mode 100644
index 000000000000..c05b9c69aef5
--- /dev/null
+++ b/pkgs/data/fonts/redhat-official/default.nix
@@ -0,0 +1,22 @@
+{ lib, fetchzip }:
+
+let version = "2.2.0"; in
+fetchzip rec {
+  name = "redhat-official-${version}";
+  url = "https://github.com/RedHatOfficial/RedHatFont/archive/${version}.zip";
+
+  postFetch = ''
+    mkdir -p $out/share/fonts/opentype
+    unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
+  '';
+
+  sha256 = "0yb6shgq6jrv3kq9faky66qpdbv4g580c3jl942844grwyngymyj";
+
+  meta = with lib; {
+    homepage = https://github.com/RedHatOfficial/RedHatFont;
+    description = "Red Hat's Open Source Fonts - Red Hat Display and Red Hat Text";
+    license = licenses.ofl;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ dtzWill ];
+  };
+}