blob: 3e843e30f5eebdc94f60f5e6a32ae98b2cc1bac7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{ lib, fetchurl, mkfontdir }:
let
pname = "spleen";
version = "1.6.0";
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/X11/misc/spleen"
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 = "0h9gj7syn87hl5rhwckih92r228zac6b1dvh3034caml8ad3fyla";
meta = with lib; {
description = "Monospaced bitmap fonts";
homepage = https://www.cambus.net/spleen-monospaced-bitmap-fonts;
license = licenses.bsd2;
maintainers = with maintainers; [ dtzWill ];
};
}
|