2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
pname = "powerline-fonts";
|
|
|
|
version = "unstable-2018-11-11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "powerline";
|
|
|
|
repo = "fonts";
|
|
|
|
rev = "e80e3eba9091dac0655a0a77472e10f53e754bb0";
|
|
|
|
hash = "sha256-GGfON6Z/0czCUAGxnqtndgDnaZGONFTU9/Hu4BGDHlk=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
find . -name '*.otf' -exec install -Dt $out/share/fonts/opentype {} \;
|
|
|
|
find . -name '*.ttf' -exec install -Dt $out/share/fonts/truetype {} \;
|
|
|
|
find . -name '*.bdf' -exec install -Dt $out/share/fonts/bdf {} \;
|
|
|
|
find . -name '*.pcf.gz' -exec install -Dt $out/share/fonts/pcf {} \;
|
|
|
|
find . -name '*.psf.gz' -exec install -Dt $out/share/consolefonts {} \;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with 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;
|
|
|
|
maintainers = with maintainers; [ malyn ];
|
|
|
|
};
|
|
|
|
}
|