nixpkgs/pkgs/data/fonts/powerline-fonts/default.nix
Alexey Shmalko 3b1fe914b9 powerline-fonts: Install Terminus font
Patched Terminus font is neither .otf, nor .ttf so it wasn't installed
before.
2016-01-15 01:21:26 +02:00

44 lines
1.1 KiB
Nix

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation {
name = "powerline-fonts-2015-06-29";
src = fetchFromGitHub {
owner = "powerline";
repo = "fonts";
rev = "97dc451724fb24e1dd9892c988642b239b5dc67c";
sha256 = "1m0a8k916s74iv2k0kk36dz7d2hfb2zgf8m0b9hg71w4yd3bmj4w";
};
buildPhase = "true";
installPhase =
''
mkdir -p $out/share/fonts/opentype
cp -v */*.otf $out/share/fonts/opentype
mkdir -p $out/share/fonts/truetype
cp -v */*.ttf $out/share/fonts/truetype
mkdir -p $out/share/fonts/bdf
cp -v */BDF/*.bdf $out/share/fonts/bdf
mkdir -p $out/share/fonts/pcf
cp -v */PCF/*.pcf.gz $out/share/fonts/pcf
mkdir -p $out/share/fonts/psf
cp -v */PSF/*.psf.gz $out/share/fonts/psf
'';
meta = with stdenv.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;
maintainer = with maintainers; [ malyn ];
};
}