2019-05-13 03:55:32 +02:00
|
|
|
{ lib, fetchurl }:
|
2019-03-30 00:46:04 +01:00
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
let
|
2019-03-30 00:46:04 +01:00
|
|
|
pname = "spleen";
|
2019-09-14 04:45:45 +02:00
|
|
|
version = "1.3.0";
|
2019-08-13 23:52:01 +02:00
|
|
|
in fetchurl {
|
2019-05-13 03:55:32 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
url = "https://github.com/fcambus/spleen/releases/download/${version}/spleen-${version}.tar.gz";
|
2019-03-30 00:46:04 +01:00
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
downloadToTemp = true;
|
|
|
|
recursiveHash = true;
|
|
|
|
postFetch = ''
|
2019-09-14 04:45:45 +02:00
|
|
|
tar xvf $downloadedFile --strip=1
|
2019-03-30 00:46:04 +01:00
|
|
|
d="$out/share/fonts/X11/misc/spleen"
|
2019-05-13 03:55:32 +02:00
|
|
|
gzip -n9 *.pcf
|
2019-09-14 04:45:45 +02:00
|
|
|
install -Dm644 *.{pcf.gz,psfu,bdf} -t $d
|
2019-03-30 00:46:04 +01:00
|
|
|
install -m644 fonts.alias-spleen $d/fonts.alias
|
|
|
|
'';
|
2019-09-14 04:45:45 +02:00
|
|
|
sha256 = "1l1ksl8xnz1yh7jl8h2g25a7wfm9xgj3lay8ddqzlxzydkkm110q";
|
2019-03-30 00:46:04 +01:00
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
meta = with lib; {
|
2019-03-30 00:46:04 +01:00
|
|
|
description = "Monospaced bitmap fonts";
|
|
|
|
homepage = https://www.cambus.net/spleen-monospaced-bitmap-fonts;
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|