2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, mkfontscale }:
|
2014-09-03 01:44:36 +00:00
|
|
|
|
2022-10-05 12:36:18 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "proggyfonts";
|
|
|
|
version = "0.1";
|
2014-09-03 01:44:36 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-10-05 12:36:18 +00:00
|
|
|
url = "https://web.archive.org/web/20150801042353/http://kaictl.net/software/proggyfonts-${version}.tar.gz";
|
|
|
|
hash = "sha256-SsLzZdR5icVJNbr5rcCPbagPPtWghbqs2Jxmrtufsa4=";
|
2014-09-03 01:44:36 +00:00
|
|
|
};
|
|
|
|
|
2020-02-11 19:04:40 +00:00
|
|
|
nativeBuildInputs = [ mkfontscale ];
|
2014-09-03 01:44:36 +00:00
|
|
|
|
2022-10-05 12:36:18 +00:00
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
2014-09-03 01:44:36 +00:00
|
|
|
|
2022-10-05 12:36:18 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2020-02-11 19:04:40 +00:00
|
|
|
|
2022-10-05 12:36:18 +00:00
|
|
|
# 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
|
2014-09-03 01:44:36 +00:00
|
|
|
|
2022-10-05 12:36:18 +00:00
|
|
|
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
|
|
|
|
'';
|
2017-08-10 19:43:49 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2023-02-19 20:43:38 +00:00
|
|
|
homepage = "https://www.upperbounds.net";
|
2014-09-03 01:44:36 +00:00
|
|
|
description = "Set of fixed-width screen fonts that are designed for code listings";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
2016-04-13 14:42:06 +00:00
|
|
|
maintainers = [ maintainers.myrl ];
|
2014-09-03 01:44:36 +00:00
|
|
|
};
|
|
|
|
}
|