From 1e23ab7bc3f887942dc82536ee558b29afea5ef4 Mon Sep 17 00:00:00 2001 From: Sizhe Zhao Date: Thu, 18 Dec 2025 11:28:52 +0800 Subject: [PATCH] tewi-font: drop Reference: https://github.com/lucy/tewi-font Reference: https://github.com/NixOS/nixpkgs/issues/471645 --- pkgs/by-name/te/tewi-font/package.nix | 67 --------------------------- pkgs/top-level/aliases.nix | 1 + 2 files changed, 1 insertion(+), 67 deletions(-) delete mode 100644 pkgs/by-name/te/tewi-font/package.nix diff --git a/pkgs/by-name/te/tewi-font/package.nix b/pkgs/by-name/te/tewi-font/package.nix deleted file mode 100644 index 62fe79d4b7fe..000000000000 --- a/pkgs/by-name/te/tewi-font/package.nix +++ /dev/null @@ -1,67 +0,0 @@ -{ - lib, - stdenv, - fetchFromGitHub, - python3, - bdftopcf, - xorg, - libfaketime, -}: - -stdenv.mkDerivation rec { - pname = "tewi-font"; - version = "2.0.2"; - - src = fetchFromGitHub { - owner = "lucy"; - repo = "tewi-font"; - rev = version; - sha256 = "1axv9bv10xlcmgfyjh3z5kn5fkg3m6n1kskcs5hvlmyb6m1zk91j"; - }; - - nativeBuildInputs = [ - python3 - bdftopcf - xorg.mkfontscale - libfaketime - xorg.fonttosfnt - ]; - - postPatch = '' - # make gzip deterministic - sed 's/gzip -9/gzip -9 -n/g' -i Makefile - - # fix python not found - patchShebangs scripts/merge - ''; - - postBuild = '' - # convert bdf fonts to otb - for i in *.bdf; do - name=$(basename "$i" .bdf) - faketime -f "1970-01-01 00:00:01" \ - fonttosfnt -v -o "$name.otb" "$i" - done - ''; - - installPhase = '' - fontDir="$out/share/fonts/misc" - install -m 644 -D *.otb out/* -t "$fontDir" - mkfontdir "$fontDir" - ''; - - meta = { - description = "Nice bitmap font, readable even at small sizes"; - longDescription = '' - Tewi is a bitmap font, readable even at very small font sizes. This is - particularily useful while programming, to fit a lot of code on your - screen. - ''; - homepage = "https://github.com/lucy/tewi-font"; - license = { - fullName = "GNU General Public License with a font exception"; - url = "https://www.gnu.org/licenses/gpl-faq.html#FontException"; - }; - maintainers = [ lib.maintainers.fro_ozen ]; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 6a29a1e02b88..3c90c8ed4031 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1585,6 +1585,7 @@ mapAliases { terminus-nerdfont = throw "'terminus-nerdfont' has been renamed to/replaced by 'nerd-fonts.terminess-ttf'"; # Converted to throw 2025-10-27 testVersion = throw "'testVersion' has been renamed to/replaced by 'testers.testVersion'"; # Converted to throw 2025-10-27 tet = throw "'tet' has been removed for lack of maintenance"; # Added 2025-10-12 + tewi-font = throw "'tewi-font' has been removed because it was removed from upstream"; # Added 2025-12-18 texinfo4 = throw "'texinfo4' has been removed in favor of the latest version"; # Added 2025-06-08 textual-paint = throw "'textual-paint' has been removed as it is broken"; # Added 2025-09-10 tezos-rust-libs = throw "ligo has been removed from nixpkgs for lack of maintenance"; # Added 2025-06-03