From 29fb8273cc0518a27a54354f964f6d125916ecc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Reynier?= Date: Wed, 27 Jul 2022 17:57:00 +0200 Subject: [PATCH] fira-go: init at 1.001 --- pkgs/data/fonts/fira-go/default.nix | 34 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/data/fonts/fira-go/default.nix diff --git a/pkgs/data/fonts/fira-go/default.nix b/pkgs/data/fonts/fira-go/default.nix new file mode 100644 index 000000000000..2d5952523a60 --- /dev/null +++ b/pkgs/data/fonts/fira-go/default.nix @@ -0,0 +1,34 @@ +{ lib, fetchzip }: + +let + pname = "fira-go"; + version = "1.001"; + user = "bBoxType"; + repo = "FiraGo"; + rev = "9882ba0851f88ab904dc237f250db1d45641f45d"; +in +fetchzip { + name = "${pname}-${version}"; + + url = "https://github.com/${user}/${repo}/archive/${rev}.zip"; + + postFetch = '' + mkdir -p $out/share/fonts/opentype + mv $out/Fonts/FiraGO_OTF_1001/{Roman,Italic}/*.otf \ + $out/share/fonts/opentype + rm -r $out/{Fonts,'Technical Report PDF',OFL.txt,README.md,*.pdf} + ''; + + sha256 = "sha256-MDGRba1eao/yVzSuncJ/nvCG8cpdrI4roVPI1G9qCbU="; + + meta = with lib; { + homepage = "https://bboxtype.com/typefaces/FiraGO"; + description = '' + Font with the same glyph set as Fira Sans 4.3 and additionally + supports Arabic, Devenagari, Georgian, Hebrew and Thai + ''; + license = licenses.ofl; + maintainers = [ maintainers.loicreynier ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index aaf2fe0d66c9..54c3eb3e085d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24894,6 +24894,8 @@ with pkgs; fira-code = callPackage ../data/fonts/fira-code { }; fira-code-symbols = callPackage ../data/fonts/fira-code/symbols.nix { }; + fira-go = callPackage ../data/fonts/fira-go { }; + fira-mono = callPackage ../data/fonts/fira-mono { }; flat-remix-icon-theme = callPackage ../data/icons/flat-remix-icon-theme {