mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-19 22:30:23 +00:00
python3Packages.powerline: use installFonts hook
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user