@@ -0,0 +1,34 @@
1+{ stdenv, fetchFromGitHub }:
2+
3+stdenv.mkDerivation {
4+ name = "powerline-fonts-2014-12-27";
5+
6+ src = fetchFromGitHub {
7+ owner = "powerline";
8+ repo = "fonts";
9+ rev = "39c99c02652f25290b64e24a7e9a7cfb8ce89a3e";
10+ sha256 = "9c83a30f36dc980582c0a079bd2896f95d19e1cb0ba5afbd8cae936c944256dd";
11+ };
12+
13+ buildPhase = "true";
14+
15+ installPhase =
16+ ''
17+ mkdir -p $out/share/fonts/opentype
18+ cp -v */*.otf $out/share/fonts/opentype
19+
20+ mkdir -p $out/share/fonts/truetype
21+ cp -v */*.ttf $out/share/fonts/truetype
22+ '';
23+
24+ meta = with stdenv.lib; {
25+ homepage = https://github.com/powerline/fonts;
26+ description = "Patched fonts for Powerline users.";
27+ longDescription = ''
28+ Pre-patched and adjusted fonts for usage with the Powerline plugin.
29+ '';
30+ license = "asl20 free ofl";
31+ platforms = platforms.all;
32+ maintainer = with maintainers; [ malyn ];
33+ };
34+}