spleen: 1.3.0 -> 1.5.0, mkfontdir for X11

This commit is contained in:
Will Dietz 2019-09-24 07:56:42 -05:00
parent b01407602c
commit 1035f0a030
No known key found for this signature in database
GPG Key ID: EBB0EA4124809D02
2 changed files with 7 additions and 5 deletions

@ -1,8 +1,8 @@
{ lib, fetchurl }:
{ lib, fetchurl, mkfontdir }:
let
pname = "spleen";
version = "1.3.0";
version = "1.5.0";
in fetchurl {
name = "${pname}-${version}";
url = "https://github.com/fcambus/spleen/releases/download/${version}/spleen-${version}.tar.gz";
@ -12,11 +12,13 @@ in fetchurl {
postFetch = ''
tar xvf $downloadedFile --strip=1
d="$out/share/fonts/X11/misc/spleen"
gzip -n9 *.pcf
install -Dm644 *.{pcf.gz,psfu,bdf} -t $d
install -m644 fonts.alias-spleen $d/fonts.alias
# create fonts.dir so NixOS xorg module adds to fp
${mkfontdir}/bin/mkfontdir $d
'';
sha256 = "1l1ksl8xnz1yh7jl8h2g25a7wfm9xgj3lay8ddqzlxzydkkm110q";
sha256 = "13ndyw1m6c778k7jr7qwbfg28gqmpcgksprn2mjgsv75wvy51z19";
meta = with lib; {
description = "Monospaced bitmap fonts";

@ -17244,7 +17244,7 @@ in
source-han-serif-simplified-chinese = sourceHanSerifPackages.simplified-chinese;
source-han-serif-traditional-chinese = sourceHanSerifPackages.traditional-chinese;
spleen = callPackage ../data/fonts/spleen { };
spleen = callPackage ../data/fonts/spleen { inherit (xorg) mkfontdir; };
stilo-themes = callPackage ../data/themes/stilo { };