nixpkgs/pkgs/data/fonts/spleen/default.nix
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

37 lines
902 B
Nix

{ lib, stdenvNoCC, fetchurl, xorg }:
stdenvNoCC.mkDerivation rec {
pname = "spleen";
version = "2.1.0";
src = fetchurl {
url = "https://github.com/fcambus/spleen/releases/download/${version}/spleen-${version}.tar.gz";
hash = "sha256-i0fFbxpuuFj7z540UwVXQEsC+7NFXjjmT7hEc/0MNy8=";
};
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 = [ ];
};
}