1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00
nixpkgs/pkgs/by-name/po/powerline-symbols/package.nix

19 lines
546 B
Nix
Raw Normal View History

{ lib, runCommand, powerline }:
2021-01-10 05:30:21 +00:00
let
inherit (powerline) version;
in runCommand "powerline-symbols-${version}" {
2021-01-10 05:30:21 +00:00
meta = {
inherit (powerline.meta) license;
priority = (powerline.meta.priority or lib.meta.defaultPriority) + 1;
2021-01-10 05:30:21 +00:00
maintainers = with lib.maintainers; [ midchildan ];
};
} ''
install -Dm644 \
${powerline.src}/font/PowerlineSymbols.otf \
$out/share/fonts/OTF/PowerlineSymbols.otf
install -Dm644 \
${powerline.src}/font/10-powerline-symbols.conf \
$out/etc/fonts/conf.d/10-powerline-symbols.conf
''