2020-02-11 19:04:40 +00:00
|
|
|
{ stdenv, fetchurl, mkfontscale }:
|
2014-09-03 02:44:36 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2014-09-03 02:44:36 +01:00
|
|
|
name = "proggyfonts-0.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://web.archive.org/web/20150801042353/http://kaictl.net/software/proggyfonts-0.1.tar.gz";
|
2014-09-03 02:44:36 +01:00
|
|
|
sha256 = "1plcm1sjpa3hdqhhin48fq6zmz3ndm4md72916hd8ff0w6596q0n";
|
|
|
|
};
|
|
|
|
|
2020-02-11 19:04:40 +00:00
|
|
|
nativeBuildInputs = [ mkfontscale ];
|
2014-09-03 02:44:36 +01:00
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
2020-02-11 19:04:40 +00:00
|
|
|
# compress pcf fonts
|
|
|
|
mkdir -p $out/share/fonts/misc
|
2017-09-04 06:01:47 +01:00
|
|
|
rm Speedy.pcf # duplicated as Speedy11.pcf
|
2014-09-03 02:44:36 +01:00
|
|
|
for f in *.pcf; do
|
2020-02-11 19:04:40 +00:00
|
|
|
gzip -n -9 -c "$f" > $out/share/fonts/misc/"$f".gz
|
2014-09-03 02:44:36 +01:00
|
|
|
done
|
|
|
|
|
2020-02-11 19:04:40 +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"
|
2014-09-03 02:44:36 +01:00
|
|
|
'';
|
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
outputHashAlgo = "sha256";
|
|
|
|
outputHashMode = "recursive";
|
2020-02-11 19:04:40 +00:00
|
|
|
outputHash = "1x196rp3wqjd7m57bgp5kfy5jmj97qncxi1vwibs925ji7dqzfgf";
|
2017-08-10 20:43:49 +01:00
|
|
|
|
2014-09-03 02:44:36 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://upperbounds.net";
|
2014-09-03 02:44:36 +01:00
|
|
|
description = "A set of fixed-width screen fonts that are designed for code listings";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
2016-04-13 15:42:06 +01:00
|
|
|
maintainers = [ maintainers.myrl ];
|
2014-09-03 02:44:36 +01:00
|
|
|
};
|
|
|
|
}
|