nixpkgs/pkgs/data/fonts/spleen/default.nix

31 lines
904 B
Nix
Raw Normal View History

2020-02-10 01:27:20 +01:00
{ lib, fetchurl, mkfontscale }:
let
pname = "spleen";
2021-06-16 00:58:59 +02:00
version = "1.9.1";
2019-08-13 23:52:01 +02:00
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
2020-02-10 01:27:20 +01: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
2020-02-10 01:27:20 +01:00
${mkfontscale}/bin/mkfontdir "$d"
'';
2021-06-16 00:58:59 +02:00
sha256 = "sha256-6Imsa0ku8On63di0DOo0QxBa0t+tbtPRxM531EIiG94=";
meta = with lib; {
description = "Monospaced bitmap fonts";
homepage = "https://www.cambus.net/spleen-monospaced-bitmap-fonts";
license = licenses.bsd2;
maintainers = with maintainers; [ dtzWill ];
};
}