From 5b70697f7ba0a3484c756a2544012d91082ef28d Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Sun, 19 Jun 2022 14:57:17 +0300 Subject: [PATCH] lexend: init at 0.pre+date=2022-01-27 Co-authored-by: legendofmiracles <30902201+legendofmiracles@users.noreply.github.com> --- pkgs/data/fonts/lexend/default.nix | 36 ++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/data/fonts/lexend/default.nix diff --git a/pkgs/data/fonts/lexend/default.nix b/pkgs/data/fonts/lexend/default.nix new file mode 100644 index 000000000000..3efb1886b171 --- /dev/null +++ b/pkgs/data/fonts/lexend/default.nix @@ -0,0 +1,36 @@ +{ lib +, stdenvNoCC +, fetchFromGitHub +}: + +stdenvNoCC.mkDerivation rec { + pname = "lexend"; + version = "0.pre+date=2022-01-27"; + + src = fetchFromGitHub { + owner = "googlefonts"; + repo = pname; + rev = "57e6c14e2a9b457e8376044a31525c2100297e9c"; + sha256 = "sha256-+tPggQIO50a8kOSnOVN/MR9ZwX5xZqYVNZO79eog9QA="; + }; + + installPhase = '' + runHook preInstall + + cd fonts + for f in *; do + mkdir -p $out/share/fonts/truetype/lexend/$f + install $f/ttf/* $out/share/fonts/truetype/lexend/$f/ + done + + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://www.lexend.com"; + description = "A variable font family designed to aid in reading proficiency"; + license = licenses.ofl; + platforms = platforms.all; + maintainers = with maintainers; [ fufexan ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dba7006d611e..ca698ccde1b4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3899,6 +3899,8 @@ with pkgs; lepton-eda = callPackage ../applications/science/electronics/lepton-eda { }; + lexend = callPackage ../data/fonts/lexend { }; + lexicon = callPackage ../tools/admin/lexicon { }; lief = callPackage ../development/libraries/lief {