2017-08-10 12:43:49 -07:00
|
|
|
{ stdenv, fetchzip}:
|
2015-04-20 20:18:40 -07:00
|
|
|
|
2017-08-10 12:43:49 -07:00
|
|
|
fetchzip {
|
2018-12-12 11:14:27 -08:00
|
|
|
name = "powerline-fonts-2018-11-11";
|
2015-04-20 20:18:40 -07:00
|
|
|
|
2018-12-12 11:14:27 -08:00
|
|
|
url = https://github.com/powerline/fonts/archive/e80e3eba9091dac0655a0a77472e10f53e754bb0.zip;
|
2015-04-20 20:18:40 -07:00
|
|
|
|
2017-08-10 12:43:49 -07:00
|
|
|
postFetch = ''
|
2016-05-04 03:08:35 -07:00
|
|
|
mkdir -p $out/share/fonts/opentype
|
2017-08-10 12:43:49 -07:00
|
|
|
unzip -j $downloadedFile '*.otf' -d $out/share/fonts/opentype
|
2015-04-20 20:18:40 -07:00
|
|
|
|
2016-05-04 03:08:35 -07:00
|
|
|
mkdir -p $out/share/fonts/truetype
|
2017-08-10 12:43:49 -07:00
|
|
|
unzip -j $downloadedFile '*.ttf' -d $out/share/fonts/truetype
|
2016-01-14 13:51:54 -08:00
|
|
|
|
2016-05-04 03:08:35 -07:00
|
|
|
mkdir -p $out/share/fonts/bdf
|
2017-08-10 12:43:49 -07:00
|
|
|
unzip -j $downloadedFile '*/BDF/*.bdf' -d $out/share/fonts/bdf
|
2016-01-14 13:51:54 -08:00
|
|
|
|
2016-05-04 03:08:35 -07:00
|
|
|
mkdir -p $out/share/fonts/pcf
|
2017-08-10 12:43:49 -07:00
|
|
|
unzip -j $downloadedFile '*/PCF/*.pcf.gz' -d $out/share/fonts/pcf
|
2016-01-14 13:51:54 -08:00
|
|
|
|
2016-05-04 03:08:35 -07:00
|
|
|
mkdir -p $out/share/fonts/psf
|
2017-08-10 12:43:49 -07:00
|
|
|
unzip -j $downloadedFile '*/PSF/*.psf.gz' -d $out/share/fonts/psf
|
2016-05-04 03:08:35 -07:00
|
|
|
'';
|
2015-04-20 20:18:40 -07:00
|
|
|
|
2018-12-12 11:14:27 -08:00
|
|
|
sha256 = "0irifak86gn7hawzgxcy53s22y215mxc2kjncv37h7q44jsqdqww";
|
2017-08-10 12:43:49 -07:00
|
|
|
|
2015-04-20 20:18:40 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/powerline/fonts;
|
2015-04-30 08:05:14 -07:00
|
|
|
description = "Patched fonts for Powerline users";
|
2015-04-20 20:18:40 -07:00
|
|
|
longDescription = ''
|
|
|
|
Pre-patched and adjusted fonts for usage with the Powerline plugin.
|
|
|
|
'';
|
2015-05-27 12:56:04 -07:00
|
|
|
license = with licenses; [ asl20 free ofl ];
|
2015-04-20 20:18:40 -07:00
|
|
|
platforms = platforms.all;
|
2016-02-10 05:59:36 -08:00
|
|
|
maintainers = with maintainers; [ malyn ];
|
2015-04-20 20:18:40 -07:00
|
|
|
};
|
|
|
|
}
|