Skip to content

Commit

Permalink
Add Powerline fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
malyn committed Apr 21, 2015
1 parent ff6be09 commit 5d46573
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
33 changes: 33 additions & 0 deletions pkgs/data/fonts/powerline-fonts/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ stdenv, fetchgit }:

stdenv.mkDerivation {
name = "powerline-fonts-39c99c";

src = fetchgit {
url = https://github.com/powerline/fonts.git;
rev = "39c99c02652f25290b64e24a7e9a7cfb8ce89a3e";
sha256 = "9c83a30f36dc980582c0a079bd2896f95d19e1cb0ba5afbd8cae936c944256dd";
};

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
'';

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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9890,6 +9890,8 @@ let

posix_man_pages = callPackage ../data/documentation/man-pages-posix { };

powerline-fonts = callPackage ../data/fonts/powerline-fonts { };

proggyfonts = callPackage ../data/fonts/proggyfonts { };

pthreadmanpages = callPackage ../data/documentation/pthread-man-pages {
Expand Down

0 comments on commit 5d46573

Please sign in to comment.