mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
nixos/boot.plymouth.font: escape font path
This fixes the usage of fonts whose filenames contain special characters of various sorts. For example, the setting ```nix boot.plymouth.font = "${pkgs.noto-fonts}/share/fonts/noto/NotoSans[wdth,wght].ttf"; ``` will cause a build failure, without this patch.
This commit is contained in:
parent
f1010e0469
commit
4f96031495
@ -219,7 +219,7 @@ in
|
||||
# Fonts
|
||||
"/etc/plymouth/fonts".source = pkgs.runCommand "plymouth-initrd-fonts" {} ''
|
||||
mkdir -p $out
|
||||
cp ${cfg.font} $out
|
||||
cp ${escapeShellArg cfg.font} $out
|
||||
'';
|
||||
"/etc/fonts/fonts.conf".text = ''
|
||||
<?xml version="1.0"?>
|
||||
|
Loading…
Reference in New Issue
Block a user