nixpkgs/pkgs/data/fonts/powerline-fonts/default.nix
volth c9eb44eab3 data/fonts: cleanup
* make font derivations fixed-output where applicable
 * fix dead links
 * `stdenv.lib` -> `lib` where `stdenv` is not involved
 * remove `meta.platforms = [ unix ]` and `meta.platforms = [ linux ]` because the restriction has no sense for data packages
2019-05-13 06:03:31 +00:00

31 lines
1 KiB
Nix

{ lib, fetchFromGitHub }:
fetchFromGitHub {
name = "powerline-fonts-2018-11-11";
owner = "powerline";
repo = "fonts";
rev = "e80e3eba9091dac0655a0a77472e10f53e754bb0";
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/fonts/psf {} \;
'';
sha256 = "0irifak86gn7hawzgxcy53s22y215mxc2kjncv37h7q44jsqdqww";
meta = with lib; {
homepage = https://github.com/powerline/fonts;
description = "Patched fonts for Powerline users";
longDescription = ''
Pre-patched and adjusted fonts for usage with the Powerline plugin.
'';
license = with licenses; [ asl20 free ofl ];
platforms = platforms.all;
maintainers = with maintainers; [ malyn ];
};
}