2023-01-30 10:25:57 +01:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub }:
|
2015-04-21 05:18:40 +02:00
|
|
|
|
2023-01-30 10:25:57 +01:00
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
pname = "powerline-fonts";
|
|
|
|
version = "unstable-2018-11-11";
|
2015-04-21 05:18:40 +02:00
|
|
|
|
2023-01-30 10:25:57 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "powerline";
|
|
|
|
repo = "fonts";
|
|
|
|
rev = "e80e3eba9091dac0655a0a77472e10f53e754bb0";
|
|
|
|
hash = "sha256-GGfON6Z/0czCUAGxnqtndgDnaZGONFTU9/Hu4BGDHlk=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2015-04-21 05:18:40 +02:00
|
|
|
|
2019-05-13 03:55:32 +02: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 {} \;
|
2020-02-10 13:28:04 +01:00
|
|
|
find . -name '*.psf.gz' -exec install -Dt $out/share/consolefonts {} \;
|
2015-04-21 05:18:40 +02:00
|
|
|
|
2023-01-30 10:25:57 +01:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
2017-08-10 21:43:49 +02:00
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|