Merge pull request #70688 from dtzWill/update/spleen-1.5.0

spleen: 1.3.0 -> 1.5.0, mkfontdir
This commit is contained in:
Will Dietz 2019-10-14 18:54:28 -05:00 committed by GitHub
commit 886bca0af5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -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";

View File

@ -17335,7 +17335,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 { };