2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchurl, xorg }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "spleen";
|
2023-02-22 10:55:15 +00:00
|
|
|
version = "1.9.2";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/fcambus/spleen/releases/download/${version}/spleen-${version}.tar.gz";
|
2023-02-22 10:55:15 +00:00
|
|
|
hash = "sha256-AOGgGJLye0Yg3QTlNZPgRdtRim8atn+ZIm8aPpUnivY=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ xorg.mkfontscale ];
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
2020-04-24 23:36:52 +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"
|
|
|
|
install -m644 fonts.alias-spleen $d/fonts.alias
|
|
|
|
|
|
|
|
# create fonts.dir so NixOS xorg module adds to fp
|
2023-02-02 18:25:31 +00:00
|
|
|
mkfontdir "$d"
|
|
|
|
|
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Monospaced bitmap fonts";
|
|
|
|
homepage = "https://www.cambus.net/spleen-monospaced-bitmap-fonts";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|