2015-04-21 05:18:40 +02:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2016-02-07 03:04:11 +01:00
|
|
|
name = "powerline-fonts-2015-12-11";
|
2015-04-21 05:18:40 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "powerline";
|
|
|
|
repo = "fonts";
|
2016-02-07 03:04:11 +01:00
|
|
|
rev = "a44abd0e742ad6e7fd8d8bc4c3cad5155c9f3a92";
|
|
|
|
sha256 = "1pwz83yh28yd8aj6fbyfz8z3q3v67psszpd9mp4vv0ms9w8b5ajn";
|
2015-04-21 05:18:40 +02:00
|
|
|
};
|
|
|
|
|
2016-05-04 12:08:35 +02:00
|
|
|
dontBuild = true;
|
2015-04-21 05:18:40 +02:00
|
|
|
|
2016-05-04 12:08:35 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/fonts/opentype
|
|
|
|
cp -v */*.otf $out/share/fonts/opentype
|
2015-04-21 05:18:40 +02:00
|
|
|
|
2016-05-04 12:08:35 +02:00
|
|
|
mkdir -p $out/share/fonts/truetype
|
|
|
|
cp -v */*.ttf $out/share/fonts/truetype
|
2016-01-14 22:51:54 +01:00
|
|
|
|
2016-05-04 12:08:35 +02:00
|
|
|
mkdir -p $out/share/fonts/bdf
|
|
|
|
cp -v */BDF/*.bdf $out/share/fonts/bdf
|
2016-01-14 22:51:54 +01:00
|
|
|
|
2016-05-04 12:08:35 +02:00
|
|
|
mkdir -p $out/share/fonts/pcf
|
|
|
|
cp -v */PCF/*.pcf.gz $out/share/fonts/pcf
|
2016-01-14 22:51:54 +01:00
|
|
|
|
2016-05-04 12:08:35 +02:00
|
|
|
mkdir -p $out/share/fonts/psf
|
|
|
|
cp -v */PSF/*.psf.gz $out/share/fonts/psf
|
|
|
|
'';
|
2015-04-21 05:18:40 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/powerline/fonts;
|
2015-04-30 17:05:14 +02:00
|
|
|
description = "Patched fonts for Powerline users";
|
2015-04-21 05:18:40 +02:00
|
|
|
longDescription = ''
|
|
|
|
Pre-patched and adjusted fonts for usage with the Powerline plugin.
|
|
|
|
'';
|
2015-05-27 21:56:04 +02:00
|
|
|
license = with licenses; [ asl20 free ofl ];
|
2015-04-21 05:18:40 +02:00
|
|
|
platforms = platforms.all;
|
2016-02-10 14:59:36 +01:00
|
|
|
maintainers = with maintainers; [ malyn ];
|
2015-04-21 05:18:40 +02:00
|
|
|
};
|
|
|
|
}
|