2019-05-12 18:55:32 -07:00
|
|
|
{ lib, fetchFromGitHub }:
|
2015-04-20 20:18:40 -07:00
|
|
|
|
2019-05-12 18:55:32 -07:00
|
|
|
fetchFromGitHub {
|
2018-12-12 11:14:27 -08:00
|
|
|
name = "powerline-fonts-2018-11-11";
|
2015-04-20 20:18:40 -07:00
|
|
|
|
2019-05-12 18:55:32 -07:00
|
|
|
owner = "powerline";
|
|
|
|
repo = "fonts";
|
|
|
|
rev = "e80e3eba9091dac0655a0a77472e10f53e754bb0";
|
2015-04-20 20:18:40 -07:00
|
|
|
|
2017-08-10 12:43:49 -07:00
|
|
|
postFetch = ''
|
2019-05-12 18:55:32 -07:00
|
|
|
tar xf $downloadedFile --strip=1
|
|
|
|
find . -name '*.otf' -exec install -Dt $out/share/fonts/opentype {} \;
|
|
|
|
find . -name '*.ttf' -exec install -Dt $out/share/fonts/truetype {} \;
|
|
|
|
find . -name '*.bdf' -exec install -Dt $out/share/fonts/bdf {} \;
|
|
|
|
find . -name '*.pcf.gz' -exec install -Dt $out/share/fonts/pcf {} \;
|
2020-02-10 04:28:04 -08:00
|
|
|
find . -name '*.psf.gz' -exec install -Dt $out/share/consolefonts {} \;
|
2016-05-04 03:08:35 -07:00
|
|
|
'';
|
2015-04-20 20:18:40 -07:00
|
|
|
|
2020-02-10 04:28:04 -08:00
|
|
|
sha256 = "0r8p4z3db17f5p8jr7sv80nglmjxhg83ncfvwg1dszldswr0dhvr";
|
2017-08-10 12:43:49 -07:00
|
|
|
|
2019-05-12 18:55:32 -07:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|