0eaa97ffad
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
30 lines
905 B
Nix
30 lines
905 B
Nix
{ lib, fetchurl, mkfontscale }:
|
|
|
|
let
|
|
pname = "spleen";
|
|
version = "1.8.2";
|
|
in fetchurl {
|
|
name = "${pname}-${version}";
|
|
url = "https://github.com/fcambus/spleen/releases/download/${version}/spleen-${version}.tar.gz";
|
|
|
|
downloadToTemp = true;
|
|
recursiveHash = true;
|
|
postFetch = ''
|
|
tar xvf $downloadedFile --strip=1
|
|
d="$out/share/fonts/misc"
|
|
install -D -m 644 *.{pcf,bdf,otf} -t "$d"
|
|
install -D -m 644 *.psfu -t "$out/share/consolefonts"
|
|
install -m644 fonts.alias-spleen $d/fonts.alias
|
|
|
|
# create fonts.dir so NixOS xorg module adds to fp
|
|
${mkfontscale}/bin/mkfontdir "$d"
|
|
'';
|
|
sha256 = "0195d8ssmd8hc0q941z6zwnccffxajv4vylypsndxf28f3ikawby";
|
|
|
|
meta = with lib; {
|
|
description = "Monospaced bitmap fonts";
|
|
homepage = "https://www.cambus.net/spleen-monospaced-bitmap-fonts";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
};
|
|
}
|