python3Packages.powerline: use installFonts hook

This commit is contained in:
eveeifyeve
2026-03-15 22:15:49 +11:00
committed by eveeifyeve
parent ac62360b13
commit 45d48aad8b

View File

@@ -9,6 +9,7 @@
pyuv,
i3ipc,
stdenv,
installFonts,
}:
# TODO: bzr support is missing because nixpkgs switched to `breezy`
@@ -37,12 +38,13 @@ buildPythonPackage rec {
# tests are travis-specific
doCheck = false;
postInstall = ''
install -dm755 "$out/share/fonts/OTF/"
install -dm755 "$out/etc/fonts/conf.d"
install -m644 "font/PowerlineSymbols.otf" "$out/share/fonts/OTF/PowerlineSymbols.otf"
install -m644 "font/10-powerline-symbols.conf" "$out/etc/fonts/conf.d/10-powerline-symbols.conf"
nativeBuildInputs = [
installFonts
];
postInstall = ''
install -dm755 "$out/etc/fonts/conf.d"
install -m644 "font/10-powerline-symbols.conf" "$out/etc/fonts/conf.d/10-powerline-symbols.conf"
install -dm755 "$out/share/fish/vendor_functions.d"
install -m644 "powerline/bindings/fish/powerline-setup.fish" "$out/share/fish/vendor_functions.d/powerline-setup.fish"