2020-02-10 00:27:20 +00:00
|
|
|
{ lib, fetchurl, mkfontscale }:
|
2019-03-29 23:46:04 +00:00
|
|
|
|
2019-05-13 01:55:32 +00:00
|
|
|
let
|
2019-03-29 23:46:04 +00:00
|
|
|
pname = "spleen";
|
2020-08-14 00:31:15 +00:00
|
|
|
version = "1.8.2";
|
2019-08-13 21:52:01 +00:00
|
|
|
in fetchurl {
|
2019-05-13 01:55:32 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
url = "https://github.com/fcambus/spleen/releases/download/${version}/spleen-${version}.tar.gz";
|
2019-03-29 23:46:04 +00:00
|
|
|
|
2019-05-13 01:55:32 +00:00
|
|
|
downloadToTemp = true;
|
|
|
|
recursiveHash = true;
|
|
|
|
postFetch = ''
|
2019-09-14 02:45:45 +00:00
|
|
|
tar xvf $downloadedFile --strip=1
|
2020-02-10 00:27:20 +00:00
|
|
|
d="$out/share/fonts/misc"
|
|
|
|
install -D -m 644 *.{pcf,bdf,otf} -t "$d"
|
|
|
|
install -D -m 644 *.psfu -t "$out/share/consolefonts"
|
2019-03-29 23:46:04 +00:00
|
|
|
install -m644 fonts.alias-spleen $d/fonts.alias
|
2019-09-24 12:56:42 +00:00
|
|
|
|
|
|
|
# create fonts.dir so NixOS xorg module adds to fp
|
2020-02-10 00:27:20 +00:00
|
|
|
${mkfontscale}/bin/mkfontdir "$d"
|
2019-03-29 23:46:04 +00:00
|
|
|
'';
|
2020-08-14 00:31:15 +00:00
|
|
|
sha256 = "0195d8ssmd8hc0q941z6zwnccffxajv4vylypsndxf28f3ikawby";
|
2019-03-29 23:46:04 +00:00
|
|
|
|
2019-05-13 01:55:32 +00:00
|
|
|
meta = with lib; {
|
2019-03-29 23:46:04 +00:00
|
|
|
description = "Monospaced bitmap fonts";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.cambus.net/spleen-monospaced-bitmap-fonts";
|
2019-03-29 23:46:04 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|