powerline-fonts: install psf to share/consolefonts

This will make easier to set the font of the virtual console
in NixOS. Instead of specifing the full filepath of the psf
on can simply do:

    console.font = "ter-powerline-v20b";
    console.packages = [ pkgs.powerline-fonts ];
This commit is contained in:
rnhmjoj 2020-02-10 13:28:04 +01:00
parent f16019c58f
commit 03f246620d
No known key found for this signature in database
GPG key ID: BFBAF4C975F76450

View file

@ -13,10 +13,10 @@ fetchFromGitHub {
find . -name '*.ttf' -exec install -Dt $out/share/fonts/truetype {} \; find . -name '*.ttf' -exec install -Dt $out/share/fonts/truetype {} \;
find . -name '*.bdf' -exec install -Dt $out/share/fonts/bdf {} \; find . -name '*.bdf' -exec install -Dt $out/share/fonts/bdf {} \;
find . -name '*.pcf.gz' -exec install -Dt $out/share/fonts/pcf {} \; find . -name '*.pcf.gz' -exec install -Dt $out/share/fonts/pcf {} \;
find . -name '*.psf.gz' -exec install -Dt $out/share/fonts/psf {} \; find . -name '*.psf.gz' -exec install -Dt $out/share/consolefonts {} \;
''; '';
sha256 = "0irifak86gn7hawzgxcy53s22y215mxc2kjncv37h7q44jsqdqww"; sha256 = "0r8p4z3db17f5p8jr7sv80nglmjxhg83ncfvwg1dszldswr0dhvr";
meta = with lib; { meta = with lib; {
homepage = https://github.com/powerline/fonts; homepage = https://github.com/powerline/fonts;