Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Powerline fonts #7494

Merged
merged 1 commit into from
Apr 24, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 34 additions & 0 deletions pkgs/data/fonts/powerline-fonts/default.nix
@@ -0,0 +1,34 @@
{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation {
name = "powerline-fonts-2014-12-27";

src = fetchFromGitHub {
owner = "powerline";
repo = "fonts";
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 = "asl20 free ofl";
platforms = platforms.all;
maintainer = with maintainers; [ malyn ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
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