2014-09-03 03:44:36 +02:00
|
|
|
{ stdenv, fetchurl, mkfontdir, mkfontscale }:
|
|
|
|
|
|
|
|
# adapted from https://aur.archlinux.org/packages/proggyfonts/
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "proggyfonts-0.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://web.archive.org/web/20150801042353/http://kaictl.net/software/proggyfonts-0.1.tar.gz";
|
2014-09-03 03:44:36 +02:00
|
|
|
sha256 = "1plcm1sjpa3hdqhhin48fq6zmz3ndm4md72916hd8ff0w6596q0n";
|
|
|
|
};
|
|
|
|
|
2018-01-10 01:27:23 +01:00
|
|
|
nativeBuildInputs = [ mkfontdir mkfontscale ];
|
2014-09-03 03:44:36 +02:00
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir -p $out/share/doc/$name $out/share/fonts/misc $out/share/fonts/truetype
|
|
|
|
|
|
|
|
cp Licence.txt $out/share/doc/$name/LICENSE
|
|
|
|
|
2017-09-04 07:01:47 +02:00
|
|
|
rm Speedy.pcf # duplicated as Speedy11.pcf
|
2014-09-03 03:44:36 +02:00
|
|
|
for f in *.pcf; do
|
|
|
|
gzip -c "$f" > $out/share/fonts/misc/"$f".gz
|
|
|
|
done
|
|
|
|
cp *.bdf $out/share/fonts/misc
|
|
|
|
cp *.ttf $out/share/fonts/truetype
|
|
|
|
|
|
|
|
for f in misc truetype; do
|
|
|
|
cd $out/share/fonts/$f
|
|
|
|
mkfontscale
|
|
|
|
mkfontdir
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2017-08-10 21:43:49 +02:00
|
|
|
outputHashAlgo = "sha256";
|
|
|
|
outputHashMode = "recursive";
|
2017-09-04 07:01:47 +02:00
|
|
|
outputHash = "1l1sxmzp3gcd2d32nxar6xwd1v1w18a9gfh57zmsrfpspnfbz7y1";
|
2017-08-10 21:43:49 +02:00
|
|
|
|
2014-09-03 03:44:36 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://upperbounds.net;
|
|
|
|
description = "A set of fixed-width screen fonts that are designed for code listings";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
2016-04-13 16:42:06 +02:00
|
|
|
maintainers = [ maintainers.myrl ];
|
2014-09-03 03:44:36 +02:00
|
|
|
};
|
|
|
|
}
|