nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 36 lines 928 B view raw
1{ lib, stdenvNoCC, fetchurl, xorg }: 2 3stdenvNoCC.mkDerivation rec { 4 pname = "spleen"; 5 version = "2.0.0"; 6 7 src = fetchurl { 8 url = "https://github.com/fcambus/spleen/releases/download/${version}/spleen-${version}.tar.gz"; 9 hash = "sha256-d4d4s13UhwG4A9skemrIdZFUzl/Dq9XMC225ikS6Wgw="; 10 }; 11 12 nativeBuildInputs = [ xorg.mkfontscale ]; 13 14 dontBuild = true; 15 16 installPhase = '' 17 runHook preInstall 18 19 d="$out/share/fonts/misc" 20 install -D -m 644 *.{pcf,bdf,otf} -t "$d" 21 install -D -m 644 *.psfu -t "$out/share/consolefonts" 22 install -m644 fonts.alias-spleen $d/fonts.alias 23 24 # create fonts.dir so NixOS xorg module adds to fp 25 mkfontdir "$d" 26 27 runHook postInstall 28 ''; 29 30 meta = with lib; { 31 description = "Monospaced bitmap fonts"; 32 homepage = "https://www.cambus.net/spleen-monospaced-bitmap-fonts"; 33 license = licenses.bsd2; 34 maintainers = with maintainers; [ dtzWill ]; 35 }; 36}