Add proggyfonts collection
The Proggy Fonts are a font collection intended for fixed-width uses like programming languages. Signed-off-by: Josh Cartwright <joshc@eso.teric.us>
This commit is contained in:
parent
933ac5e9f8
commit
a224d1f9ba
|
@ -0,0 +1,40 @@
|
||||||
|
{ stdenv, fetchurl, mkfontdir, mkfontscale }:
|
||||||
|
|
||||||
|
# adapted from https://aur.archlinux.org/packages/proggyfonts/
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "proggyfonts-0.1";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://kaictl.net/software/${name}.tar.gz";
|
||||||
|
sha256 = "1plcm1sjpa3hdqhhin48fq6zmz3ndm4md72916hd8ff0w6596q0n";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ mkfontdir mkfontscale ];
|
||||||
|
|
||||||
|
installPhase =
|
||||||
|
''
|
||||||
|
mkdir -p $out/share/doc/$name $out/share/fonts/misc $out/share/fonts/truetype
|
||||||
|
|
||||||
|
cp Licence.txt $out/share/doc/$name/LICENSE
|
||||||
|
|
||||||
|
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
|
||||||
|
'';
|
||||||
|
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -8115,6 +8115,8 @@ let
|
||||||
|
|
||||||
posix_man_pages = callPackage ../data/documentation/man-pages-posix { };
|
posix_man_pages = callPackage ../data/documentation/man-pages-posix { };
|
||||||
|
|
||||||
|
proggyfonts = callPackage ../data/fonts/proggyfonts { };
|
||||||
|
|
||||||
pthreadmanpages = callPackage ../data/documentation/pthread-man-pages { };
|
pthreadmanpages = callPackage ../data/documentation/pthread-man-pages { };
|
||||||
|
|
||||||
shared_mime_info = callPackage ../data/misc/shared-mime-info { };
|
shared_mime_info = callPackage ../data/misc/shared-mime-info { };
|
||||||
|
|
Loading…
Reference in New Issue