From c0e4d8744a994ebd8182159e7a9a8308e7cb1196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20Gr=C3=A4fenstein?= Date: Thu, 17 Jun 2021 14:38:19 +0200 Subject: [PATCH] times-newer-roman: init at 2018-09-11 --- pkgs/data/fonts/times-newer-roman/default.nix | 25 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/data/fonts/times-newer-roman/default.nix diff --git a/pkgs/data/fonts/times-newer-roman/default.nix b/pkgs/data/fonts/times-newer-roman/default.nix new file mode 100644 index 000000000000..6122883c6156 --- /dev/null +++ b/pkgs/data/fonts/times-newer-roman/default.nix @@ -0,0 +1,25 @@ +{ lib, fetchzip }: + +let + version = "unstable-2018-09-11"; +in +fetchzip { + name = "times-newer-roman-${version}"; + + url = "https://web.archive.org/web/20210609022835/https://timesnewerroman.com/assets/TimesNewerRoman.zip"; + + postFetch = '' + mkdir -p $out/share/fonts/opentype + unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype + ''; + + hash = "sha256-Hx59RYLLwfimEQjEEes0lCpg6iql46DFwhQ7kVGiEzc="; + + meta = with lib; { + description = "A font that looks just like Times New Roman, except each character is 5-10% wider"; + homepage = "https://timesnewerroman.com/"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ samuelgrf ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3eef75778009..3fdadd6ea321 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22446,6 +22446,8 @@ in theme-vertex = callPackage ../data/themes/vertex { }; + times-newer-roman = callPackage ../data/fonts/times-newer-roman { }; + tipa = callPackage ../data/fonts/tipa { }; ttf_bitstream_vera = callPackage ../data/fonts/ttf-bitstream-vera { };