summary refs log tree commit diff
path: root/pkgs/data/fonts
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-10-29 04:20:00 +0000
committerMario Rodas <marsam@users.noreply.github.com>2020-10-29 04:20:00 +0000
commit322aaa9b19a0a7d09cf783c8e103dce508297bee (patch)
treedaad7af45eca92b24c0ed9800f6675fedb5649bc /pkgs/data/fonts
parent4f5156fdb90043ae73f45e0729057e687922e36a (diff)
downloadnixpkgs-322aaa9b19a0a7d09cf783c8e103dce508297bee.tar
nixpkgs-322aaa9b19a0a7d09cf783c8e103dce508297bee.tar.gz
nixpkgs-322aaa9b19a0a7d09cf783c8e103dce508297bee.tar.bz2
nixpkgs-322aaa9b19a0a7d09cf783c8e103dce508297bee.tar.lz
nixpkgs-322aaa9b19a0a7d09cf783c8e103dce508297bee.tar.xz
nixpkgs-322aaa9b19a0a7d09cf783c8e103dce508297bee.tar.zst
nixpkgs-322aaa9b19a0a7d09cf783c8e103dce508297bee.zip
fraunces: init at 1.000
Diffstat (limited to 'pkgs/data/fonts')
-rw-r--r--pkgs/data/fonts/fraunces/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/data/fonts/fraunces/default.nix b/pkgs/data/fonts/fraunces/default.nix
new file mode 100644
index 00000000000..d5879d6c2bc
--- /dev/null
+++ b/pkgs/data/fonts/fraunces/default.nix
@@ -0,0 +1,25 @@
+{ lib, fetchzip }:
+let
+  version = "1.000";
+in
+fetchzip {
+  name = "fraunces-${version}";
+
+  url = "https://github.com/undercasetype/Fraunces/releases/download/${version}/UnderCaseType_Fraunces_${version}.zip";
+
+  sha256 = "0qgl140qkn9p87x7pk60fd3lj206y5h0fq2xkcj2qiv3sxbqxwqb";
+
+  postFetch = ''
+    mkdir -p $out/share/fonts/
+    unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
+    unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
+  '';
+
+  meta = with lib; {
+    description = "A display, “Old Style” soft-serif typeface inspired by early 20th century typefaces";
+    homepage = "https://github.com/undercasetype/Fraunces";
+    license = licenses.ofl;
+    maintainers = [ maintainers.marsam ];
+    platforms = platforms.all;
+  };
+}