nixpkgs/pkgs/data/fonts/powerline-fonts/default.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

2017-08-10 19:43:49 +00:00
{ stdenv, fetchzip}:
2015-04-21 03:18:40 +00:00
2017-08-10 19:43:49 +00:00
fetchzip {
name = "powerline-fonts-2017-05-25";
2015-04-21 03:18:40 +00:00
2017-08-10 19:43:49 +00:00
url = https://github.com/powerline/fonts/archive/fe396ef6f6b9b315f30af7d7229ff21f67a66e12.zip;
2015-04-21 03:18:40 +00:00
2017-08-10 19:43:49 +00:00
postFetch = ''
mkdir -p $out/share/fonts/opentype
2017-08-10 19:43:49 +00:00
unzip -j $downloadedFile '*.otf' -d $out/share/fonts/opentype
2015-04-21 03:18:40 +00:00
mkdir -p $out/share/fonts/truetype
2017-08-10 19:43:49 +00:00
unzip -j $downloadedFile '*.ttf' -d $out/share/fonts/truetype
mkdir -p $out/share/fonts/bdf
2017-08-10 19:43:49 +00:00
unzip -j $downloadedFile '*/BDF/*.bdf' -d $out/share/fonts/bdf
mkdir -p $out/share/fonts/pcf
2017-08-10 19:43:49 +00:00
unzip -j $downloadedFile '*/PCF/*.pcf.gz' -d $out/share/fonts/pcf
mkdir -p $out/share/fonts/psf
2017-08-10 19:43:49 +00:00
unzip -j $downloadedFile '*/PSF/*.psf.gz' -d $out/share/fonts/psf
'';
2015-04-21 03:18:40 +00:00
2017-08-10 19:43:49 +00:00
sha256 = "07yjbwri7nnnnynps86sz0dlivwqw7gfw045v63q969nab9dw388";
2015-04-21 03:18:40 +00:00
meta = with stdenv.lib; {
homepage = https://github.com/powerline/fonts;
description = "Patched fonts for Powerline users";
2015-04-21 03:18:40 +00:00
longDescription = ''
Pre-patched and adjusted fonts for usage with the Powerline plugin.
'';
license = with licenses; [ asl20 free ofl ];
2015-04-21 03:18:40 +00:00
platforms = platforms.all;
maintainers = with maintainers; [ malyn ];
2015-04-21 03:18:40 +00:00
};
}