2019-05-13 01:55:32 +00:00
|
|
|
{ lib, fetchurl }:
|
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";
|
2019-06-16 22:56:10 +00:00
|
|
|
version = "1.0.5";
|
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 = ''
|
|
|
|
tar xf $downloadedFile --strip=1
|
2019-03-29 23:46:04 +00:00
|
|
|
d="$out/share/fonts/X11/misc/spleen"
|
2019-05-13 01:55:32 +00:00
|
|
|
gzip -n9 *.pcf
|
2019-03-29 23:46:04 +00:00
|
|
|
install -Dm644 *.pcf.gz -t $d
|
|
|
|
install -Dm644 *.bdf -t $d
|
|
|
|
install -m644 fonts.alias-spleen $d/fonts.alias
|
|
|
|
'';
|
2019-06-16 22:56:10 +00:00
|
|
|
sha256 = "0144a0lkkl5qx0a8sapymcayj5lp5cs9nfgpbmg3427n41pkqfbb";
|
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";
|
|
|
|
homepage = https://www.cambus.net/spleen-monospaced-bitmap-fonts;
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|