From 1e05181886d4bf53e5bb9d98ae613d34a6b5ce4a Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Fri, 19 Apr 2019 02:40:36 +0200 Subject: [PATCH] siji: Also package bdf font The pcf version seems to be incompatible with newer FreeType versions and hence doesn't show up in `fc-list`. A bdf file format is also available. After packaging that the font shows up in `fc-list`. See: https://github.com/stark/siji/issues/28 Fixes #59847 --- pkgs/data/fonts/siji/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/data/fonts/siji/default.nix b/pkgs/data/fonts/siji/default.nix index 99f0d913b857..a5a4be73c275 100644 --- a/pkgs/data/fonts/siji/default.nix +++ b/pkgs/data/fonts/siji/default.nix @@ -8,11 +8,13 @@ in fetchzip { url = https://github.com/stark/siji/archive/95369afac3e661cb6d3329ade5219992c88688c1.zip; postFetch = '' - mkdir -p $out/share/fonts - unzip -j $downloadedFile \*.pcf -d $out/share/fonts/pcf + unzip -j $downloadedFile + + install -D *.pcf -t $out/share/fonts/pcf + install -D *.bdf -t $out/share/fonts/bdf ''; - sha256 = "1799hs7zd8w7qyja4mii9ggmrm786az7ldsqwx9mbi51b56ym640"; + sha256 = "1ymcbirdbkqaf0xs2y00l0wachb4yxh1fgqm5avqwvccs0lsfj1d"; meta = { homepage = https://github.com/stark/siji;