Files
nixpkgs/pkgs/by-name/pr/proggyfonts/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

50 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchurl,
mkfontscale,
}:
stdenv.mkDerivation rec {
pname = "proggyfonts";
version = "0.1";
src = fetchurl {
url = "https://web.archive.org/web/20150801042353/http://kaictl.net/software/proggyfonts-${version}.tar.gz";
hash = "sha256-SsLzZdR5icVJNbr5rcCPbagPPtWghbqs2Jxmrtufsa4=";
};
nativeBuildInputs = [ mkfontscale ];
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
# compress pcf fonts
mkdir -p $out/share/fonts/misc
rm Speedy.pcf # duplicated as Speedy11.pcf
for f in *.pcf; do
gzip -n -9 -c "$f" > $out/share/fonts/misc/"$f".gz
done
install -D -m 644 *.bdf -t "$out/share/fonts/misc"
install -D -m 644 *.ttf -t "$out/share/fonts/truetype"
install -D -m 644 Licence.txt -t "$out/share/doc/$name"
mkfontscale "$out/share/fonts/truetype"
mkfontdir "$out/share/fonts/misc"
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/bluescan/proggyfonts";
description = "Set of fixed-width screen fonts that are designed for code listings";
license = licenses.mit;
platforms = platforms.all;
maintainers = [ maintainers.myrl ];
};
}