depot/third_party/nixpkgs/pkgs/data/fonts/spleen/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

36 lines
928 B
Nix

{ lib, stdenvNoCC, fetchurl, xorg }:
stdenvNoCC.mkDerivation rec {
pname = "spleen";
version = "2.0.0";
src = fetchurl {
url = "https://github.com/fcambus/spleen/releases/download/${version}/spleen-${version}.tar.gz";
hash = "sha256-d4d4s13UhwG4A9skemrIdZFUzl/Dq9XMC225ikS6Wgw=";
};
nativeBuildInputs = [ xorg.mkfontscale ];
dontBuild = true;
installPhase = ''
runHook preInstall
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
mkfontdir "$d"
runHook postInstall
'';
meta = with lib; {
description = "Monospaced bitmap fonts";
homepage = "https://www.cambus.net/spleen-monospaced-bitmap-fonts";
license = licenses.bsd2;
maintainers = with maintainers; [ dtzWill ];
};
}