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

32 lines
1 KiB
Nix
Raw Normal View History

{ lib, fetchFromGitHub }:
2015-04-21 03:18:40 +00:00
fetchFromGitHub {
name = "powerline-fonts-2018-11-11";
2015-04-21 03:18:40 +00:00
owner = "powerline";
repo = "fonts";
rev = "e80e3eba9091dac0655a0a77472e10f53e754bb0";
2015-04-21 03:18:40 +00:00
2017-08-10 19:43:49 +00:00
postFetch = ''
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 {} \;
find . -name '*.psf.gz' -exec install -Dt $out/share/consolefonts {} \;
'';
2015-04-21 03:18:40 +00:00
sha256 = "0r8p4z3db17f5p8jr7sv80nglmjxhg83ncfvwg1dszldswr0dhvr";
2017-08-10 19:43:49 +00:00
meta = with 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
};
}